Class AcceleratorOptions

java.lang.Object
com.openfin.desktop.JsonBean
com.openfin.desktop.AcceleratorOptions

public class AcceleratorOptions
extends JsonBean
Window creation options that enable keyboard shortcuts for devtools, zoom, reload, and reload ignoring cache.
Author:
Anthony
  • Constructor Details

  • Method Details

    • isDevtools

      public boolean isDevtools()
      Get devtools keyboard shortcut setting.
      Returns:
      true if shortcut is enabled.
    • setDevtools

      public void setDevtools​(boolean devTools)
      Enables/Disables devtools keyboard shortcut: Ctrl + Shift + I (Toggles Devtools)
      Parameters:
      devTools - If true, enables the devtools keyboard shortcut.
    • isReload

      public boolean isReload()
      Get reload keyboard shortcut setting
      Returns:
      true if shortcut is enabled.
    • setReload

      public void setReload​(boolean reload)
      Enables/Disables reload keyboard shortcuts: Ctrl + R (Windows) F5 (Windows) Command + R (Mac)
      Parameters:
      reload - If true, enables the reload keyboard shortcuts.
    • isReloadIgnoringCache

      public boolean isReloadIgnoringCache()
      Get reload-from-source keyboard shortcut setting
      Returns:
      true if shortcut is enabled.
    • setReloadIgnoringCache

      public void setReloadIgnoringCache​(boolean reloadIgnoringCache)
      Enables/Disables reload-from-source keyboard shortcut: Ctrl + Shift + R (Windows) Shift + F5 (Windows) Command + Shift + R (Mac)
      Parameters:
      reloadIgnoringCache - If true, enables the reload-from-source keyboard shortcuts.
    • isZoom

      public boolean isZoom()
      Get zoom keyboard shortcut setting
      Returns:
      true if shortcut is enabled.
    • setZoom

      public void setZoom​(boolean zoom)
      Enables/Disables zoom keyboard shortcut: Ctrl + + (Zoom In) Ctrl + Shift + + (Zoom In) Ctrl + - (Zoom Out) Ctrl + Shift + - (Zoom Out) Ctrl + Scroll (Zoom In & Out) Ctrl + 0 (Restore to 100%)
      Parameters:
      zoom - If true, enables the zoom keyboard shortcuts.