-
23 Aug 2011 4:32 AM #1
Unanswered: multiple Keylistener on a Grid
Unanswered: multiple Keylistener on a Grid
How can I add a multiple Keylistener like STGR+A on a Grid?
I tried with, but it didn't work.HTML Code:personGrid.addListener(KeyNav.getKeyEvent(), new Listener<GridEvent<BeanModel>>() { if(be.getKeyCode()==17 && be.getKeyCode()==65) ...
Thanks.
Isak
-
23 Aug 2011 9:33 AM #2
What is STGR?
-
23 Aug 2011 8:42 PM #3
I assume you mean STRG rather than STGR. Strg is short for Steuerung, German for control.
It looks like you're using Ext GWT. This forum is for ExtJS 4, there is a separate forum for Ext GWT.
In ExtJS you could check for Ctrl+A with something like this:
Here ev.A is just a constant equal to 65.Code:if (ev.getKey() === ev.A && ev.ctrlKey) { ... }


Reply With Quote