Drafts Action Directory

Focus Mode Toggle

Posted by bhr1, Last update 4 months ago

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;
    }
    

Options

  • After Success Default
    Notification Info
    Log Level Info

Comments

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