Bugzilla – Bug 710
Keyboard Preferences: don't match single characters in modifiers in Key View search
Last modified: 2018-08-20 11:46:06 UTC
Created attachment 469 [details] David Bailes' patch to ignore single key characters in modifiers in Key View search For example with the patch, searching for T only gives three results, so excluding ALT- CTRL- or SHIFT-modified shortcuts that don't include T.
Sorry, but this patch was difficult to parse, so I've modified it substantially for my commit: * Made the indentation and parentheses more standard and consistent. * No need to use searchit.GetChar(searchit.Len() - 1), because wxString has a Last() method. * Changed the logic so there's no longer that single long negative clause. At revision: 13273
(In reply to comment #1) > Sorry, but this patch was difficult to parse, so I've modified it substantially > for my commit: > > * Made the indentation and parentheses more standard and consistent. > > * No need to use searchit.GetChar(searchit.Len() - 1), because wxString has a > Last() method. > > * Changed the logic so there's no longer that single long negative clause. > > At revision: 13273 thanks, David.
(In reply to comment #2) Thanks for the patch, David! And to Gale for testing and confirming.