Merge pull request #777 from jcb91/bugfix/keyboard

give defined ordering to keyboard shortcuts with the same help_index
pull/781/head
Min RK 11 years ago
commit 1d934b3a9a

@ -255,7 +255,13 @@ define([
}
help.sort(function (a, b) {
if (a.help_index === b.help_index) {
return 0;
if (a.shortcut === b.shortcut) {
return 0;
}
if (a.shortcut > b.shortcut) {
return 1;
}
return -1;
}
if (a.help_index === undefined || a.help_index > b.help_index){
return 1;

Loading…
Cancel
Save