summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2024-10-07 14:33:44 +0200
committerAlbrecht Schlosser <albrechts.fltk@online.de>2024-10-07 14:33:44 +0200
commit0b4bea1eead921dad863efbf668e793ed26a0184 (patch)
tree5839933fd0182815db6f44a8102485d371e7ec5b /src
parent16d59008c288babb543dca04cce271a573bebef2 (diff)
Fix shortcut FL_CTRL+'=' on Windows (#1086)
Strictly spoken, commit 3fbd4f944f0a introduced a regression on Windows. The additional table entry VK_OEM_PLUS overrode the old behavior because the value of VK_OEM_PLUS is 0xbb (see comment in code).
Diffstat (limited to 'src')
-rw-r--r--src/Fl_win32.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Fl_win32.cxx b/src/Fl_win32.cxx
index dec95241e..06e9d5eee 100644
--- a/src/Fl_win32.cxx
+++ b/src/Fl_win32.cxx
@@ -1150,7 +1150,7 @@ static const struct {
{VK_LAUNCH_MAIL, FL_Mail},
#endif
{0xba, ';'},
- {0xbb, '='},
+ {0xbb, '='}, // 0xbb == VK_OEM_PLUS (see #1086)
{0xbc, ','},
{0xbd, '-'},
{0xbe, '.'},
@@ -1160,7 +1160,6 @@ static const struct {
{0xdc, '\\'},
{0xdd, ']'},
{0xde, '\''},
- {VK_OEM_PLUS, '+'},
{VK_OEM_102, FL_Iso_Key}
};
static int ms2fltk(WPARAM vk, int extended) {