csaez / quicklauncher

A minimal Qt based menu to quickly find and execute Maya commands and user scripts.
72 stars 20 forks source link

Support custom shortcut #10

Closed csaez closed 8 years ago

csaez commented 9 years ago

It would be cool to be able to set any key as shortcut by generalizing the mechanism used by the tab setup (the tab key is reserved by Maya's native shortcut support and quicklauncher manage the shortcut through pyside, unfortunately tab is heavily used to move the focus between fields in the attribute editor and people might want to set other key).

csaez commented 8 years ago

After giving it some thoughts, I think it's better to leave this to the host application, otherwise we will have clashes with existing shortcuts defined by other systems making it very tricky to manage.

Actually, looking back, the tab setup thingy was kind of a bad idea, quicklauncher shouldn't override host application's functionality and I'm tempted to remove it (fortunately it's opt-in).

dshlai commented 8 years ago

Did you mean instead of using PySide's hot key module and we should use Maya's native hotkey command instead?

How about Sublime Text Style command palette shortcut for launching the menu, e.g., [ctrl-shift-p]? It seems to me the combination of left side modifier combine with letters on the right hand keyboard position better suit for this purpose.

I am not aware any short-cut clash with Maya for this combo of keys.

csaez commented 8 years ago

Hi @dshlai, Sure, you can assign whatever you want through Maya hotkey editor (just like anything else), the reason of the TAB shortcut being included here is because Maya doesn't expose that key (kind of a special case), but you can totally go sublime-ish or whatever makes sense to you (I personally use Ctrl+P because that's what my code editor of choice uses... and it works great :) ).

Cheers!