Tue 08 Dec 2009 05:14:10 PM UTC, original submission:
In trunk SVN r4459, there are a few oddities with the shortcuts displayed in bottombars(), compared to the help browser.
First, if more than one meta sequence is bound to the same function, the last sequence is displayed instead of the first. For example, in the help browser, "First Line" is displayed as "M-\", with "M-|" as an alternative, but "First File" in the file browser, which uses the same shortcuts, is displayed as "M-|".
Second, if both a function key and a meta sequence are bound to the same function, the function key is displayed instead of the meta sequence. For example, in the help browser, "WhereIs Next" is displayed as "M-W", with "F16" as an alternative, but "WhereIs Next" in the file browser is displayed as "F16".
The attached patch rearranges find_first_sc() a bit to make it match the help browser's logic. Note that it's somewhat experimental and probably needs to be looked over, mostly with regard to rebinding keys; despite the revised comment, I don't actually know whether e.g. binding a function key first to one of the arrow keys is problematic.
|