diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2024-08-23 17:13:15 +0200 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2024-08-23 17:13:15 +0200 |
| commit | d6ddc62b33a1ebfd70961e664bd59a5670059ad1 (patch) | |
| tree | ecc15d8e828e4712e973943b927f83dcf74f0b2a | |
| parent | a0a91d4854501eec973a0e9aab4cc02b2c0d5182 (diff) | |
Fix CTRL/META state display in test/handle_keys.cxx (macOS)
This changes only the display of the mentioned state bits in the test
program, and only on macOS.
Thanks to Manolo for finding and reporting this.
| -rw-r--r-- | test/handle_keys.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/handle_keys.cxx b/test/handle_keys.cxx index decf0c121..ea5474ffb 100644 --- a/test/handle_keys.cxx +++ b/test/handle_keys.cxx @@ -228,7 +228,7 @@ int app::handle(int ev) { const char *etxt = Fl::event_text(); int ekey = Fl::event_key(); int elen = Fl::event_length(); - char ctrl = (Fl::event_state() & FL_COMMAND) ? 'C' : '.'; + char ctrl = (Fl::event_state() & FL_CTRL) ? 'C' : '.'; char alt = (Fl::event_state() & FL_ALT) ? 'A' : '.'; char shift = (Fl::event_state() & FL_SHIFT) ? 'S' : '.'; char meta = (Fl::event_state() & FL_META) ? 'M' : '.'; |
