Merge pull request #435 from unxed/master

sync shift key values with this proposal: microsoft/terminal#337
This commit is contained in:
Cyd
2022-12-07 15:45:15 +01:00
committed by GitHub
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -5700,8 +5700,8 @@ if( (GetKeyState(VK_MENU)&0x8000) && (wParam==VK_SPACE) ) {
// shift keys. But PuTTY is not a console app, so why not to send
// all information about control keys state that we actually have here?
// Using bits not used by any other status for backward compatibility.
#define RIGHT_SHIFT_PRESSED 0x1000
#define LEFT_SHIFT_PRESSED 0x2000
#define RIGHT_SHIFT_PRESSED 0x0400
#define LEFT_SHIFT_PRESSED 0x0200
if (GetAsyncKeyState(VK_LSHIFT)) { ctrl |= RIGHT_SHIFT_PRESSED; }
if (GetAsyncKeyState(VK_RSHIFT)) { ctrl |= LEFT_SHIFT_PRESSED; }
// end
+2 -2
View File
@@ -5700,8 +5700,8 @@ if( (GetKeyState(VK_MENU)&0x8000) && (wParam==VK_SPACE) ) {
// shift keys. But PuTTY is not a console app, so why not to send
// all information about control keys state that we actually have here?
// Using bits not used by any other status for backward compatibility.
#define RIGHT_SHIFT_PRESSED 0x1000
#define LEFT_SHIFT_PRESSED 0x2000
#define RIGHT_SHIFT_PRESSED 0x0400
#define LEFT_SHIFT_PRESSED 0x0200
if (GetAsyncKeyState(VK_LSHIFT)) { ctrl |= RIGHT_SHIFT_PRESSED; }
if (GetAsyncKeyState(VK_RSHIFT)) { ctrl |= LEFT_SHIFT_PRESSED; }
// end