Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 3 of 3 total
Thread key detection
Thu, Mar 10 2016 2:16 PMPermanent Link

Matthew Jones

I'm looking at porting an existing application to the browser. It currently
uses things like Alt-J to switch modes. Can I detect these in EWB? Or even
Ctrl variants? And of course stop any default actions.


--
Matthew Jones
Thu, Mar 10 2016 2:51 PMPermanent Link

Raul

Team Elevate Team Elevate

<<
I'm looking at porting an existing application to the browser. It currently
uses things like Alt-J to switch modes. Can I detect these in EWB? Or even
Ctrl variants? And of course stop any default actions.
>>

It can definitely capture keypresses. Form OnKeyDown event gets the key as well as states for Shift, Ctrl and Alt.

Default actions - i don't believe so (my  quick test showed browser shortcut keys still took precedence).

Raul
Fri, Mar 11 2016 4:52 AMPermanent Link

Ronald

Maybe you also need to set TForm.KeyPreview to True.

Ronald
Image