1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-07-25 08:58:06 +02:00

Bug 646: PAGEUP and PAGEDOWN disabled for now.

This commit is contained in:
james.k.crook@gmail.com 2013-08-27 17:42:10 +00:00
parent 863e9aecb5
commit 557885770b

View File

@ -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);
}