Browse Source

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.
pull/1068/head
Albrecht Schlosser 9 months ago
parent
commit
d6ddc62b33
  1. 2
      test/handle_keys.cxx

2
test/handle_keys.cxx

@ -228,7 +228,7 @@ int app::handle(int ev) {
const char *etxt = Fl::event_text(); const char *etxt = Fl::event_text();
int ekey = Fl::event_key(); int ekey = Fl::event_key();
int elen = Fl::event_length(); 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 alt = (Fl::event_state() & FL_ALT) ? 'A' : '.';
char shift = (Fl::event_state() & FL_SHIFT) ? 'S' : '.'; char shift = (Fl::event_state() & FL_SHIFT) ? 'S' : '.';
char meta = (Fl::event_state() & FL_META) ? 'M' : '.'; char meta = (Fl::event_state() & FL_META) ? 'M' : '.';

Loading…
Cancel
Save