From 557885770ba9973948190d0a953244a86bb70db0 Mon Sep 17 00:00:00 2001 From: "james.k.crook@gmail.com" Date: Tue, 27 Aug 2013 17:42:10 +0000 Subject: [PATCH] Bug 646: PAGEUP and PAGEDOWN disabled for now. --- src/effects/VST/VSTEffect.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/effects/VST/VSTEffect.cpp b/src/effects/VST/VSTEffect.cpp index b24d4df64..3d7c08a50 100644 --- a/src/effects/VST/VSTEffect.cpp +++ b/src/effects/VST/VSTEffect.cpp @@ -270,11 +270,20 @@ void PluginRegistrationDialog::OnChar( wxListEvent & event ) { iItem = 0; } + else if(( iKeyCode == WXK_PAGEUP ) || ( iKeyCode == WXK_PAGEDOWN )) + { + // ignore page up and page down for now. + // At some future date we can calculate where they take the focus to + // and extra-toggle that item. + event.Veto(); + return; + } else { iItem = -1; } - // Item must be in range and not the item we are already on. + // Item must be in range. + // Extra-toggle so that item is toggled back. if( (iItem >= 0 ) && (iItem < (int)mFiles.GetCount() )) ToggleItem(iItem); }