0

I want to allow a user to override the persistent configuration flags to automatically start and automatically close when complete. One idiom is to detect the Shift key down on startup.

How can I detect the shift key down?

I tried adding a keyboard-down event handler in application initialization, but that did not seem to get called at all.

Richard Haven
  • 1,122
  • 16
  • 31
  • I don't understand what you want to do. This sentence in particular "to override the persistent configuration flags to automatically start and automatically close when complete" What is a persistent configuration flag? What do you want to automatically start or close? I would expect the shift key to trigger a key down event; but without seeing how you setup your listener; it's tough to diagnose what may have went wrong. – JeffryHouser Jan 02 '13 at 18:43
  • Are you asking how do you detect if the shift key is down when the key is pressed before you app has even had time to register a keydown listener? – Mark Fox Jan 03 '13 at 05:42
  • I'm asking to detect that the shift key is or is not down as the application starts. As long as I can abort actions that it will perform (currently in creationComplete) based on persistent configuration – Richard Haven Jan 03 '13 at 08:06
  • 1
    You can try to listen for something like mouse over event. If your app is fullscreen, then it's likely to happen. However, you can always use native extensions or native processes to use some native code. – user1875642 Jan 03 '13 at 08:26

0 Answers0