Skip to content

Commit badf5fb

Browse files
committed
Using Space without modifiers to clear dead key state
1 parent 7870a22 commit badf5fb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/javafx.graphics/src/main/native-glass/win/ViewContainer.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -547,8 +547,8 @@ void ViewContainer::HandleViewDeadKeyEvent(HWND hwnd, UINT msg, WPARAM wParam, L
547547
}
548548

549549
// Since we handle dead keys ourselves, reset the keyboard dead key status (if any)
550-
static BYTE kbState[256];
551-
::GetKeyboardState(kbState);
550+
static BYTE kbState[256] = {};
551+
kbState[VK_SPACE] = 0x80;
552552
WORD ignored;
553553
::ToAsciiEx(VK_SPACE, ::MapVirtualKey(VK_SPACE, 0),
554554
kbState, &ignored, 0, m_kbLayout);

0 commit comments

Comments
 (0)