mirror of
https://github.com/keymanapp/keyman.git
synced 2026-10-16 02:47:31 +00:00
chore(windows): apply suggestions from code review
Co-authored-by: Marc Durdin <marc@durdin.net>
This commit is contained in:
parent
651ba9f236
commit
f3b9d36bcc
3 changed files with 4 additions and 3 deletions
|
|
@ -208,7 +208,7 @@ void DebugMessage(LPMSG msg, WPARAM wParam) // I2908
|
|||
wsprintf(ds, "DebugMessage(%x, wm_keymankeyup: %s lParam: %X) [message flags: %x time: %d]", PtrToInt(msg->hwnd),
|
||||
Debug_VirtualKey((WORD) msg->wParam), (unsigned int) msg->lParam, wParam, (int) msg->time);
|
||||
else if (msg->message == WM_KEYMAN_KEY_EVENT)
|
||||
wsprintf(ds, "DebugMessage(%x, WM_KEYMAN_KEYEVENT: %s lParam: %X) [message flags: %x time: %d]", PtrToInt(msg->hwnd),
|
||||
wsprintf(ds, "DebugMessage(%x, WM_KEYMAN_KEY_EVENT: %s lParam: %X) [message flags: %x time: %d]", PtrToInt(msg->hwnd),
|
||||
Debug_VirtualKey((WORD)msg->wParam), (unsigned int) msg->lParam, wParam, (int) msg->time);
|
||||
else if(msg->message == WM_KEYDOWN || msg->message == WM_KEYUP || msg->message == WM_SYSKEYDOWN || msg->message == WM_SYSKEYUP)
|
||||
wsprintf(ds, "DebugMessage(%x, %s, wParam: %s, lParam: %X) [message flags: %x time: %d extra: %x]",
|
||||
|
|
|
|||
|
|
@ -17,7 +17,8 @@
|
|||
#define GLOBAL_KEY_MUTEX_NAME "KeymanEngine_KeyMutex"
|
||||
|
||||
/**
|
||||
WM_USER private messages
|
||||
WM_USER private messages -- used only for communication
|
||||
between low level keyboard hook and serial key event server
|
||||
*/
|
||||
#define WM_KEYMAN_KEY_EVENT (WM_USER + 1)
|
||||
#define WM_KEYMAN_MODIFIER_EVENT (WM_USER + 2)
|
||||
|
|
|
|||
|
|
@ -487,7 +487,7 @@ private:
|
|||
|
||||
if (msg == WM_KEYMAN_KEY_EVENT) {
|
||||
// We track changes to modifiers with WM_KEYMAN_MODIFIER_EVENT, but only ever
|
||||
// pass them on to the app when we receive them with the WM_KEYMAN_KEYEVENT
|
||||
// pass them on to the app when we receive them with the WM_KEYMAN_KEY_EVENT
|
||||
// message.
|
||||
if (!SendInput(2, input, sizeof(INPUT))) {
|
||||
DebugLastError("SendInput");
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue