Should any key be usable for shortcuts?

Post a reply

Smilies
:D :) :( :o :-? 8) :lol: :x :P :oops: :cry: :evil: :roll: :wink:

BBCode is ON
[img] is ON
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Should any key be usable for shortcuts?

Re: Should any key be usable for shortcuts?

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

Re: Should any key be usable for shortcuts?

by Ludek » Mon Jan 23, 2017 12:32 pm

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?

by stax76 » Mon Jan 23, 2017 10:22 am

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?

by Ludek » Mon Jan 23, 2017 8:16 am

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.

Should any key be usable for shortcuts?

by stax76 » Thu Jan 19, 2017 10:11 pm

I would much prefer if any key would be available for shortcut action use.

Top