Is it normal behavior for a THotkey to not allow the same hotkey twice?
Here is what I mean.
Say I set the hotkey to Ctrl+Shift+X. I then do something else, and come back to change it. While I am holding down Ctrl and Shift, I realize I dont want to change the hotkey anyway, so I press X while holding Ctrl+Shift. Now the THotkey rejects it. I let go of all the keys, and try the same combination again. It still wont let me assign that key. Even if I click somewhere else on my form, and go back and try the same combination, it wont let me!
Why is that? How can I prevent that?
Thanks!
THotkey
is a wrapper for a standard Windows control, that is, the control isn't written in Delphi. It is not even a modified (in Delphi) standard edit control; rather, the 'hot key control' is a part of the Microsoft Windows operating system. Therefore, its behaviour depends not on Delphi version [unless there are issues with the VCL wrapping part of it], but possibly on the Windows version. Just tried it: It works in Windows 95 with Delphi 4, too. - Andreas Rejbrand