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 27, 2022  
 

Does your application modify the windows' handle method similarly?

No, my entire window's handle() is just:

int Main_Window::handle(int event) {
    switch (event) {
    case FL_FOCUS:
    case FL_UNFOCUS:
        return 1;
#ifdef __APPLE__
    case FL_KEYBOARD:
        if (Fl::event_key() == FL_Tab && Fl::event_shift()) {
            previous_channel_cb(nullptr, this);
            return 1;
        }
        break;
#endif
    }
    return Fl_Double_Window::handle(event);
}

This is with FLTK 1.3.8.


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/1196811481@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'.