diff options
author | Neil <nyamatongwe@gmail.com> | 2020-01-23 09:46:59 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2020-01-23 09:46:59 +1100 |
commit | e1ec844eb03e5c0de240e426762b87d21213a5ac (patch) | |
tree | e95111f3dddc35e0a017b64db0aa071df2e9b7da | |
parent | 455e439cec7d89c9d5b928d4dfc970c3e0c7f543 (diff) | |
download | scintilla-mirror-e1ec844eb03e5c0de240e426762b87d21213a5ac.tar.gz |
Improve tracing of key down messages with more information.
This is commented out and may be enabled by changing source code.
-rw-r--r-- | win32/ScintillaWin.cxx | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/win32/ScintillaWin.cxx b/win32/ScintillaWin.cxx index bcb4feae9..a2e59687d 100644 --- a/win32/ScintillaWin.cxx +++ b/win32/ScintillaWin.cxx @@ -1549,7 +1549,13 @@ sptr_t ScintillaWin::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam case WM_SYSKEYDOWN: case WM_KEYDOWN: { - //Platform::DebugPrintf("S keydown %d %x %x %x %x\n",iMessage, wParam, lParam, ::IsKeyDown(VK_SHIFT), ::IsKeyDown(VK_CONTROL)); + // Platform::DebugPrintf("Keydown %c %c%c%c%c %x %x\n", + // iMessage == WM_KEYDOWN ? 'K' : 'S', + // (lParam & 1 << 24) ? '-' : 'E', + // KeyboardIsKeyDown(VK_SHIFT) ? 'S' : '-', + // KeyboardIsKeyDown(VK_CONTROL) ? 'C' : '-', + // KeyboardIsKeyDown(VK_MENU) ? 'A' : '-', + // wParam, lParam); lastKeyDownConsumed = false; const int ret = KeyDownWithModifiers(KeyTranslate(static_cast<int>(wParam)), ModifierFlags(KeyboardIsKeyDown(VK_SHIFT), |