Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    KeyIdentifier class seesm to be missing support for Mac/Safari

    SmartClient Version: v9.1p_2014-06-30/LGPL Development Only (built 2014-06-30)

    I am trying to do something similar to the following:

    Code:
    KeyIdentifier delKey = new KeyIdentifier();
    delKey.setMetaKey(true);
    delKey.setKeyName("DEL"); //$NON-NLS-1$
    Page.registerKey(debugKey, new PageKeyHandler() {
      public void execute(String keyName) {
        // Do some work
      }
    });
    However, the KeyIdentifier class supports the methods setAltKey, setShiftKey, and setCtrlKey, but it does not support setMetaKey.

    Is there a way to set up a handler for key combinations that use the Meta key on the Mac, or is this functionality missing?

    #2
    We don't currently have support for detecting the metaKey in the same way as the shiftKey / ctrlKey.
    Historically there have been some native browser limitations which impact whether we can actually detect this reliably.
    However we will be taking a look at whether it is possible for us to add this functionality and will follow up on this thread with more information.

    Regards
    Isomorphic Software

    Comment

    Working...
    X