Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2024-11

Keystrokes going awry

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Timothy Groves

So I wrote a piano program in Lazarus.? It uses keyboard keys to play notes.? Specifically, it uses the Q row for white keys, out to the \ key (because that's the last one on my keyboard), and the number row for black keys, out to the backspace.? FormKeyDown and FormKeyUp are used to trap the keystrokes.? KeyPreview := TRUE.

Problem is, some keystrokes are getting trapped earlier, their 7th bit set.? [ comes through as #219, ] comes through as #221. Worse, = comes through as #187.

Now, I've corrected for all this in my code, but the question is:? What's causing this?

Running Lazarus 3.4 with fpc 3.2.2 on Debian 12.6, openbox and xfpanel, but not xfwm.

Reply by email