Should any key be usable for shortcuts?

Report bugs & feature requests for MediaMonkey 5 and learn about the newest builds.

Moderator: Gurus

Should any key be usable for shortcuts?

You may select 1 option

 
 
View results

stax76
Posts: 176
Joined: Sun Mar 12, 2006 6:45 am

Should any key be usable for shortcuts?

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

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

Ludek
Posts: 3342
Joined: Fri Mar 09, 2007 9:00 am

Re: Should any key be usable for shortcuts?

Post 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.

stax76
Posts: 176
Joined: Sun Mar 12, 2006 6:45 am

Re: Should any key be usable for shortcuts?

Post 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

Ludek
Posts: 3342
Joined: Fri Mar 09, 2007 9:00 am

Re: Should any key be usable for shortcuts?

Post 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.

stax76
Posts: 176
Joined: Sun Mar 12, 2006 6:45 am

Re: Should any key be usable for shortcuts?

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


Post Reply