Skip to content

Commit 5309afe

Browse files
author
linesight
committed
getting partical fix from cztomczak@d6deaf8
1 parent 24abdc3 commit 5309afe

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/subprocess/main_message_loop/util_win.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,8 @@ int GetCefKeyboardModifiers(WPARAM wparam, LPARAM lparam) {
136136
return modifiers;
137137
}
138138

139-
bool IsKeyDown(WPARAM wparam) {
140-
return (GetKeyState(wparam) & 0x8000) != 0;
139+
bool IsKeyDown(int keycode) {
140+
return (GetKeyState(keycode) & 0x8000) != 0;
141141
}
142142

143143
float GetDeviceScaleFactor() {

src/subprocess/main_message_loop/util_win.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ WNDPROC SetWndProcPtr(HWND hWnd, WNDPROC wndProc);
3131

3232
int GetCefMouseModifiers(WPARAM wparam);
3333
int GetCefKeyboardModifiers(WPARAM wparam, LPARAM lparam);
34-
bool IsKeyDown(WPARAM wparam);
34+
bool IsKeyDown(int keycode);
3535

3636
// Returns the device scale factor. For example, 200% display scaling will
3737
// return 2.0.

0 commit comments

Comments
 (0)