From 0ef60e2c8aee59c9727703b3bfadac469917de5b Mon Sep 17 00:00:00 2001 From: ansstuff Date: Fri, 9 Mar 2012 18:26:08 +0000 Subject: [PATCH] * Taseditor: fixed bug with listview autoscroll --- src/drivers/win/taseditor/piano_roll.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/drivers/win/taseditor/piano_roll.cpp b/src/drivers/win/taseditor/piano_roll.cpp index 5d30d4a1..32973d1d 100644 --- a/src/drivers/win/taseditor/piano_roll.cpp +++ b/src/drivers/win/taseditor/piano_roll.cpp @@ -1080,9 +1080,11 @@ LRESULT APIENTRY ListWndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam) } case WM_KEYDOWN: { - if (!taseditor_config.keyboard_for_piano_roll) + // only allow 8 keys + if (taseditor_config.keyboard_for_piano_roll && (wParam == VK_LEFT || wParam == VK_UP || wParam == VK_RIGHT || wParam == VK_DOWN || wParam == VK_END || wParam == VK_HOME || wParam == VK_PRIOR || wParam == VK_NEXT)) + break; + else return 0; - break; } case WM_TIMER: // disable timer of entering edit mode (there's no edit mode anyway)