FLTK logo

Re: [fltk/fltk] Fl_Sys_Menu_Bar menu item shortcuts using Escape or Tab do not work properly on Mac (Issue #469)

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.issues  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: [fltk/fltk] Fl_Sys_Menu_Bar menu item shortcuts using Escape or Tab do not work properly on Mac (Issue #469) Daniel Harding Jul 26, 2022  
 

Thanks!

Since Mac and Shift+Tab is the only thing not working right for me, my window's handle() has this snippet:

#ifdef __APPLE__
    case FL_KEYBOARD:
        if (Fl::event_key() == FL_Tab && Fl::event_shift()) {
            previous_channel_cb(nullptr, this);
            return 1;
        }
#endif

and this workaround works fine for me. The only (minor) downside is that the menu doesn't "flicker" in response to this shortcut (obviously).

Thanks again for your consideration on this.


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <fltk/fltk/issues/469/1195771709@github.com>

Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.