mirror of
https://github.com/cookiengineer/audacity
synced 2025-08-04 22:29:27 +02:00
modified version of David Bailes's patch for Bug 710 - Keyboard Preferences: don't match single characters in modifiers in Key View search
This commit is contained in:
parent
c39269bf4a
commit
d906d5c788
@ -809,8 +809,21 @@ KeyView::RefreshLines()
|
||||
continue;
|
||||
}
|
||||
|
||||
// For the Key View, if the filter is a single character,
|
||||
// then it has to be the last character in the searchit string,
|
||||
// and be preceded by nothing or +.
|
||||
if ((mViewType == ViewByKey) &&
|
||||
(mFilter.Len() == 1) &&
|
||||
(!mFilter.IsSameAs(searchit.Last()) ||
|
||||
((searchit.Len() > 1) &&
|
||||
((wxString)(searchit.GetChar(searchit.Len() - 2)) != wxT("+")))))
|
||||
{
|
||||
// Not suitable so continue to next node
|
||||
continue;
|
||||
}
|
||||
|
||||
// For tree view, we must make sure all parent nodes are included
|
||||
// whether they match the filter or not
|
||||
// whether they match the filter or not.
|
||||
if (mViewType == ViewByTree)
|
||||
{
|
||||
KeyNodeArrayPtr queue;
|
||||
|
Loading…
x
Reference in New Issue
Block a user