summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/handle_keys.cxx2
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' : '.';