• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Esc/Backspace key
#4
No, unfortunately not. The main problem is that focus matters a great deal when processing key events, and it's really difficult to know at any given time whether something will have focus (and I would have to add handlers for every single component that could receive focus in order to properly consume the key event). I use a global key listener for processing the pedal actions, which means that my listener gets triggered whether or not a dialog or other part of the application already processed the key that was pressed.  By the time my listener is triggered, it may have already gone through the normal processing for whatever component had focus. Like I said, trying to handle this all was a complete mess which is why I opted not to support using the escape key to go back to the library screen.
Reply


Messages In This Thread
Esc/Backspace key - by schnautza - 11-26-2018, 04:17 AM
RE: Esc/Backspace key - by Zubersoft - 11-26-2018, 04:28 AM
RE: Esc/Backspace key - by schnautza - 11-26-2018, 04:59 AM
RE: Esc/Backspace key - by Zubersoft - 11-26-2018, 11:04 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.