Fix for issue #404 about Fl::get_key(int).
This commit is contained in:
parent
d5c47132ef
commit
5b26d2b203
@ -37,6 +37,7 @@ int Fl_Wayland_System_Driver::event_key(int k) {
|
||||
return Fl::event_state(8<<(k-FL_Button));
|
||||
int sym = Fl::event_key();
|
||||
if (sym >= 'a' && sym <= 'z' ) sym -= 32;
|
||||
if (k >= 'a' && k <= 'z' ) k -= 32;
|
||||
return (Fl::event() == FL_KEYDOWN || Fl::event() == FL_SHORTCUT) && sym == k;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user