From d6ddc62b33a1ebfd70961e664bd59a5670059ad1 Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Fri, 23 Aug 2024 17:13:15 +0200 Subject: 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. --- test/handle_keys.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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' : '.'; -- cgit v1.2.3