Action

Focus Mode Toggle

Posted by bhr1, Last update about 2 years 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.

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
Items available in the Drafts Directory are uploaded by community members. Use appropriate caution reviewing downloaded items before use.