mirror of
https://github.com/fltk/fltk.git
synced 2026-05-28 11:25:22 +08:00
Windows: fix for using AltGr key after kludge for Ctrl+ (#1093)
This commit is contained in:
+2
-1
@@ -1586,7 +1586,8 @@ content key keyboard layout
|
|||||||
3|+ '3' Hungarian
|
3|+ '3' Hungarian
|
||||||
4|+ '4' Turkish
|
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
|
int vk_plus_key = (VkKeyScanA('+') & 0xff); // virtual key of '+'-containing key
|
||||||
bool plus_shift_pos = ((VkKeyScanA('+') & 0x100) != 0); // true means '+' in shifted position
|
bool plus_shift_pos = ((VkKeyScanA('+') & 0x100) != 0); // true means '+' in shifted position
|
||||||
int plus_other_char; // the other char on same key as '+'
|
int plus_other_char; // the other char on same key as '+'
|
||||||
|
|||||||
Reference in New Issue
Block a user