Announcement

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

    registerKey questions

    1. When I register some key I do, for example, as
    Code:
    isc.Page.registerKey({keyName: "H", ctrlKey: true, altKey: true}, action1);
    isc.Page.registerKey({keyName: "H", ctrlKey: true, shiftKey: true}, action2);
    but now if I want to un-register one, I am forced to do it by
    Code:
    isc.Page.unregisterKey("H")
    since the first one uses the KeyIdentifier and the second one the KeyName... and if I do this I lose both shortcuts...

    What can I do if I want just to unregister one of them (besides of add again the other one after the unregistrarion)



    2. I have noticed that shortcuts created via isc.Page.registerKey works ok when the focus is NOT in a FormItem... so is there a way to also fire the defined action in isc.Page.registerKey ALSO when the focus is in a FormItem.

    I know that I can do it with the event keyPress of isc.FormItem... but I ask to do it in the same isc.Page.registerKey to avoid to the work twice


    Regards.

    David
    Last edited by dbaz; 16 Aug 2010, 01:02.
Working...
X