diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2024-10-26 18:33:26 +0200 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2024-10-26 18:33:26 +0200 |
| commit | 94a50ecd6b9a8183ae06990f2afd5cb7984ae66b (patch) | |
| tree | 141696e003428c897e9d9b19cd14dce951a654aa /src/Fl_win32.cxx | |
| parent | c0e07d3452a65cc0f0ea7f56ec149ffd7e6e934f (diff) | |
Windows: fix for using AltGr key after kludge for Ctrl+ (#1093)
Diffstat (limited to 'src/Fl_win32.cxx')
| -rw-r--r-- | src/Fl_win32.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Fl_win32.cxx b/src/Fl_win32.cxx index fe3ff5e9b..7bb7b6938 100644 --- a/src/Fl_win32.cxx +++ b/src/Fl_win32.cxx @@ -1586,7 +1586,8 @@ content key keyboard layout 3|+ '3' Hungarian 4|+ '4' Turkish */ - if (Fl::e_state & FL_CTRL) { // extra processing necessary only when Ctrl is down + if ((Fl::e_state & FL_CTRL) && !(GetAsyncKeyState(VK_MENU) >> 15)) { + // extra processing necessary only when Ctrl is down and Alt is up int vk_plus_key = (VkKeyScanA('+') & 0xff); // virtual key of '+'-containing key bool plus_shift_pos = ((VkKeyScanA('+') & 0x100) != 0); // true means '+' in shifted position int plus_other_char; // the other char on same key as '+' |
