Drafts Action Directory

Focus Mode Toggle

Posted by bhr1, Last update 9 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.



  • script

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


  • After Success Default
    Notification Info
    Log Level Info


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