Page 1 of 1

Should any key be usable for shortcuts?

Posted: Thu Jan 19, 2017 10:11 pm
by stax76
I would much prefer if any key would be available for shortcut action use.

Re: Should any key be usable for shortcuts?

Posted: Mon Jan 23, 2017 8:16 am
by Ludek
Note that a scripter can easily write an addon that will disable this feature.

e.g. by overriding the SearchBar.comeIn() method to not accept 'activelist' search type.

Re: Should any key be usable for shortcuts?

Posted: Mon Jan 23, 2017 10:22 am
by stax76
any tip on this is very welcome, first I need to improve my HTML/JavaScript knowledge, 2006 in MM4 it was slightly complicated, see here:

http://pastebin.com/E42ymJnE

Re: Should any key be usable for shortcuts?

Posted: Mon Jan 23, 2017 12:32 pm
by Ludek
Just create a script (folder under /Scripts/) with file /controls/searchBar_add.js

Namely [your MM5 install folder]/scripts/[YourScriptName]/controls/searchBar_add.js

with following content:

Code: Select all

SearchBar.prototype._orig_comeIn = SearchBar.prototype.comeIn;

SearchBar.prototype.comeIn = function (params) {
    if (params.searchType != 'activelist')
        this._orig_comeIn(params);
}
You can add also info.json, zip it and rename it to *.mmip so that others can easily install it as an extension.

Re: Should any key be usable for shortcuts?

Posted: Mon Jan 23, 2017 3:47 pm
by stax76