Skip to content

Commit 71751c3

Browse files
campersauamaitland
authored andcommitted
WPF - Simplify Support Shift + AltGr (#3701)
1 parent 70a7ba1 commit 71751c3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

CefSharp.Core.Runtime/Internals/CefBrowserHostWrapper.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -393,8 +393,7 @@ void CefBrowserHostWrapper::SendKeyEvent(int message, int wParam, int lParam)
393393
// 4 Either ALT key is pressed.
394394
SHORT scan_res = ::VkKeyScanExW(wParam, current_layout);
395395
constexpr auto ctrlAlt = (2 | 4);
396-
constexpr auto shiftCtrlAlt = (1 | 2 | 4);
397-
if (((scan_res >> 8) & 0xFF) == ctrlAlt || ((scan_res >> 8) & 0xFF) == shiftCtrlAlt)
396+
if (((scan_res >> 8) & ctrlAlt) == ctrlAlt) // ctrl-alt pressed
398397
{
399398
keyEvent.modifiers &= ~(EVENTFLAG_CONTROL_DOWN | EVENTFLAG_ALT_DOWN);
400399
keyEvent.modifiers |= EVENTFLAG_ALTGR_DOWN;

0 commit comments

Comments
 (0)