Interface DisableShortcutsOnFocusGainedComponent

    • Method Detail

      • focusGained

        default void focusGained​(java.awt.event.FocusEvent e)
        Specified by:
        focusGained in interface java.awt.event.FocusListener
      • focusLost

        default void focusLost​(java.awt.event.FocusEvent e)
        Specified by:
        focusLost in interface java.awt.event.FocusListener
      • hasToBeDisabled

        default boolean hasToBeDisabled​(javax.swing.KeyStroke ks)
        Returns true if the given shortcut has Shift modifier or no modifier and is not an actions key. Note: This was protected
        Parameters:
        ks - key stroke
        Returns:
        true if the given shortcut has to be disabled
        See Also:
        KeyEvent.isActionKey()
      • isOnlyShift

        static boolean isOnlyShift​(int modifiers)
        Check if the modifiers is only shift Note: This was private
        Parameters:
        modifiers - The modifiers to check
        Returns:
        true if the only modifier is InputEvent.SHIFT_DOWN_MASK
      • restoreMenuActions

        default void restoreMenuActions()
        Restore all actions previously disabled Note: This was protected
      • restoreActionShortcuts

        default void restoreActionShortcuts()
        Restore all action shortcuts previously unregistered Note: This was protected