Question

Maybe this is an overarching question as I've seen similar bugs in Firefox and I'd like to know how to avoid coding them.

For no apparent reason, the function keys, arrow keys (de-numlocked numpad as well), the 6 keys over the arrows, and backspace stop working. Every other key seems to work leading me to think it's some sort of interrupt issue. It works again when I restart Delphi.

This is on an IBM Model M keyboard so certainly it couldn't be a hardware issue, although if someone knows better I won't be that naive, I've noticed this with different keyboards.

I'm not actually interested in a fix for Delphi, I just would like to know how to avoid keyboard input bugs. I'm most certainly debugging bug laden code. I just wonder why it causes parts of the keyboard to malfunction.

Was it helpful?

Solution

I doubt that it's Delphi's fault. I'm using Delphi 7 and never had this problem. I suggest you look for another culprit.

OTHER TIPS

If this happens when in the debugger, it is possible that the message processing for a keystroke is failing to be completed. Try pressing all the Alt, shift, control, and all other such keys to see if the issue clears.

Or is it a faulty Global Keyboard Hook? Try disabling as much utilities that have global hotkeys.

Ha! I finally figured out what was doing it, I've got MadExcept installed and when I used Ctrl-Shift-C to autogenerate class functions I was getting a delphi exception. I'd get an error and it was secretly a MadExcept error. If I clicked OK it would stop me from entering some "meta"-keyboard input. If I Ctrl-Shift-C again on that stub class and the error pops up. I can hit Details, then it tells me regular MadExcept info about the error. I can hit Details and continue programming, and my IDE is fine again!

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top