Drafts Action Directory

Focus Mode Toggle

Posted by bhr1, Last updated: 2018-06-23 20:06:51 UTC

Toggle Focus Mode On or Off.

Works well as a keyboard action to remove the need to hide the keyboard to set focus mode while writing.

Install

Steps

  • script

    // Toggle focus mode on or off
    if (editor.focusModeEnabled == true) {
      editor.focusModeEnabled = false;
    }
    else {
      editor.focusModeEnabled = true;
    }
    

Comments

Actions available in the Action Directory are uploaded by community members. Use appropriate caution reviewing downloaded actions before use.