diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2024-10-27 00:14:09 +0200 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2024-10-27 00:14:09 +0200 |
| commit | ae55a42c716174f17c86ecbb25ee6893eeca3497 (patch) | |
| tree | 5456ef380b40c6545172ba1c3bf79b374ac3a019 | |
| parent | 94a50ecd6b9a8183ae06990f2afd5cb7984ae66b (diff) | |
Quick fix for Windows Ctrl character handling - cont'd
| -rw-r--r-- | src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.cxx b/src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.cxx index 48b74f0d7..e59027c77 100644 --- a/src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.cxx +++ b/src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.cxx @@ -334,7 +334,8 @@ int Fl_WinAPI_Screen_Driver::compose(int &del) { unsigned char ascii = (unsigned char)Fl::e_text[0]; /* WARNING: The [AltGr] key on international keyboards falsely set FL_CTRL! */ /* More investigation needed. */ - int condition = (Fl::e_state & (FL_ALT | FL_META /* | FL_CTRL */ )) && !(ascii & 128) ; + int condition = (Fl::e_state & (FL_ALT | FL_META | FL_CTRL)) && + !(GetAsyncKeyState(VK_MENU) >> 15) && !(ascii & 128); if (condition) { // this stuff is to be treated as a function key del = 0; return 0; |
