Announcement

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

    Page.unregisterKey doesn't seem to work

    Hi all

    I have some troubles with the following methods..

    Code:
        public void regKey() {
            
            KeyIdentifier debugKey = new KeyIdentifier();        
            debugKey.setCtrlKey(true);
            debugKey.setAltKey(true);
            debugKey.setShiftKey(false);        
            debugKey.setKeyName("r");
    
            Page.registerKey(debugKey, new KeyCallback() {
    
                @Override
                public void execute(String keyName) {
                    SC.say(getID() + " called");                
                }
            });
        }
    
        
        public void unRegKey() {
            Page.unregisterKey("r");
        }
    When I call the method regKey() the shortcut works. After a few actions I try to unregister the same key with Page.unregisterKey but it still fires when I press the shortcut keys.

    I'm using Firefox 3.6 and SmartGWT 2.4

    Any help would be appreciated.


    Any help would be appreciated.
Working...
X