To debug application development, I add keyboard shortcuts for common tasks. I can sue Ext.KeyMap to do it like this ...
var map = new Ext.KeyMap("my-element", { key: 13,
But I want to detect "ss" or "qq", that is, specific double keystrokes of letters. I'm not sure how to do this ....
My idea is to detect a singular keystroke, add a listener to detect the next keystroke. To handle the gap between them, set up a delayed event that removes the listener after x amount of time.
Any improvements / suggestions / warnings
source share