Board index » delphi » BackSpace, Del, Enter don't work in THotKey

BackSpace, Del, Enter don't work in THotKey

I want the user to be able to select custom Shortcuts to MenuItems
into a THotKey control. But THotKey doesn't seem to accept the
BackSpace, Delete and Enter key, and I need them (for example: a user
might want to use Alt+BkSp for Undo, Ctrl-Enter for insert page break
etc). The funny thing is, while at run-time THotKey doesn't get these
keys, I can type them at design-time in the HotKey property of a
THotKey and they DO show up. First I thought maybe the tabsheet the
THotKey is placed on would maybe{*word*222}it up, but even in a new
project with only a THoyKey placed on a form this problem appears.

What could be going wrong? I'm using Delphi 2.0 btw.

 

Re:BackSpace, Del, Enter don't work in THotKey


I believe those keys and several others are "predefined" and executed
before the keypress events.  I think that keydown or key up (I forget
which) may allow access to them.

-Dave

In article <3320f1b0.65291...@news.flnet.nl>, 0meur...@lelystad.flnet.nl
says...

Quote

>I want the user to be able to select custom Shortcuts to MenuItems
>into a THotKey control. But THotKey doesn't seem to accept the
>BackSpace, Delete and Enter key, and I need them (for example: a user
>might want to use Alt+BkSp for Undo, Ctrl-Enter for insert page break
>etc). The funny thing is, while at run-time THotKey doesn't get these
>keys, I can type them at design-time in the HotKey property of a
>THotKey and they DO show up. First I thought maybe the tabsheet the
>THotKey is placed on would maybe{*word*222}it up, but even in a new
>project with only a THoyKey placed on a form this problem appears.

>What could be going wrong? I'm using Delphi 2.0 btw.

--
Dave Krajcar, Alternative Solutions
rai...@pacifier.com

Other Threads