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 | d6d886563cc23bc79a4495dc9018945c53b02bfe (patch) | |
| tree | 887ecc9b754e5f76d7d76ef95113992919e3ebae | |
| parent | b1dc12a8f433296a648306e9227062346df2718d (diff) | |
| download | scintilla-mirror-d6d886563cc23bc79a4495dc9018945c53b02bfe.tar.gz | |
Backport: Improve tracing of key down messages with more information.
This is commented out and may be enabled by changing source code.
Backport of changeset 7960:ff2eaa3cd2db.
| -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 dc31987fb..21bd90288 100644 --- a/win32/ScintillaWin.cxx +++ b/win32/ScintillaWin.cxx @@ -1539,7 +1539,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), |
