Add support for the on-screen soft keyboard.

This commit is contained in:
fanlusky committed 2026-07-17 23:22:17 +08:00
1 parent 70865e30df
commit c7a06b4150
9 files changed
+416

No files matched your search

+10
View File
@@ -25,12 +25,22 @@ LRESULT CALLBACK LowLevelKeyboardProc(int nCode, WPARAM wParam, LPARAM lParam)
bool alt = IsKeyPressed(VK_MENU);
bool shift = IsKeyPressed(VK_SHIFT);
// Ctrl + Shift + Alt + K opens the standalone screen keyboard. Consume the
// shortcut so the foreground application does not receive a stray K.
if (ctrl && shift && alt && p->vkCode == 'K')
{
OpenKeyboardPanelApplication();
return 1;
}
//
// Ctrl + Shift + Alt + T to terminate
//
if (ctrl && shift && alt && p->vkCode == 'T')
{
CloseSettingsApplication();
CloseEmojiPanelApplication();
CloseKeyboardPanelApplication();
ExitProcess(0);
}