Changeset 25027

Timestamp:
Mar 7, 2021, 4:29:19 PM (3 years ago)
Author:
wraitii
Message:

Hotkey search - lowercase comparison.

It is better to do case-insensitive search.
Improves on rP24215, though the sensitivity is only an issue since rP25023

Tested by: nwtour

Reported by: nwtour

Differential Revision: https://code.wildfiregames.com/D3647

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ps/trunk/binaries/data/mods/public/gui/hotkeys/HotkeysPage.js

    r25023 r25027  
    8989        let hotkeyList = Engine.GetGUIObjectByName("hotkeyList");
    9090        hotkeyList.selected = -1;
    91         let textFilter = Engine.GetGUIObjectByName("hotkeyTextFilter").caption;
     91        let textFilter = Engine.GetGUIObjectByName("hotkeyTextFilter").caption;
    9292
    9393        let hotkeys;
     
    9999        hotkeys = hotkeys.filter(x => {
    100100            return x.indexOf(textFilter) !== -1 ||
    101                 translate(this.metadata.hotkeys[x]?.name || x).indexOf(textFilter) !== -1;
     101                translate(this.metadata.hotkeys[x]?.name || x).indexOf(textFilter) !== -1;
    102102        });
    103103
Note: See TracChangeset for help on using the changeset viewer.