New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modifier-only hotkeys support #1284

Closed
plastikat opened this Issue Oct 16, 2017 · 6 comments

Comments

Projects
None yet
2 participants
@plastikat

plastikat commented Oct 16, 2017

I was wondering why modifier-only hotkeys (e.g. when keys like Ctrl or RAlt or LShift are pressed and released one at a time or in combination) are not allowed to be defined? Are there any technical restrictions?

It can sometimes be convenient, for example assigning RCtrl as a "Switch GUI focus" hotkey (which matches default VirtualBox "host key") and consequently spare yourself conceiving and learning yet another hotkey for a similar action.

Also the configuration dialog seems to generalize "left" or "right" modifiers (in spite of them being selectable in drop-down lists) to naïve ones (e.g. RCtrl to Ctrl). Is this intended and, if it is, then why?

@Maximus5

This comment has been minimized.

Show comment
Hide comment
@Maximus5

Maximus5 Oct 16, 2017

Owner

That is by design of hotkeys processing. Yes, modifiers can't be used as single hotkeys.

I don't understand your question about left/right generalization...

Owner

Maximus5 commented Oct 16, 2017

That is by design of hotkeys processing. Yes, modifiers can't be used as single hotkeys.

I don't understand your question about left/right generalization...

@plastikat

This comment has been minimized.

Show comment
Hide comment
@plastikat

plastikat Oct 17, 2017

Yes, modifiers can't be used as single hotkeys.

Well, that's a pity. But not a show-stopper, of course.

I don't understand your question about left/right generalization...

Here's some additional details. I open a modifier drop-down list and click on RCtrl there. But, instead of this specific value, a naïve Ctrl (which is left/right agnostic) gets selected for the field.
It sometimes helps to resolve some hotkey conflicts or simply precludes false positives, when you bind one combination strictly to the "right" modifier (RCtrl+H, for example) and, optionally, another strictly to the "left" one (LCtrl+H); these combinations are then treated as distinct. I hope this provides some clarification.

plastikat commented Oct 17, 2017

Yes, modifiers can't be used as single hotkeys.

Well, that's a pity. But not a show-stopper, of course.

I don't understand your question about left/right generalization...

Here's some additional details. I open a modifier drop-down list and click on RCtrl there. But, instead of this specific value, a naïve Ctrl (which is left/right agnostic) gets selected for the field.
It sometimes helps to resolve some hotkey conflicts or simply precludes false positives, when you bind one combination strictly to the "right" modifier (RCtrl+H, for example) and, optionally, another strictly to the "left" one (LCtrl+H); these combinations are then treated as distinct. I hope this provides some clarification.

@Maximus5

This comment has been minimized.

Show comment
Hide comment
@Maximus5

Maximus5 Oct 17, 2017

Owner

You didn't say what action you have tried.
So I may only guess that its type is Global.
Than it's expected behavior due to WinAPI limitation.

Owner

Maximus5 commented Oct 17, 2017

You didn't say what action you have tried.
So I may only guess that its type is Global.
Than it's expected behavior due to WinAPI limitation.

Maximus5 added a commit that referenced this issue Oct 18, 2017

@plastikat

This comment has been minimized.

Show comment
Hide comment
@plastikat

plastikat Oct 19, 2017

Thanks for the explanation about WinAPI restrictions. Initially I've observed the behavior with "Local" type, but at the time I didn't even think it's type-dependent...
I've done some additional tests and now I see that strict modifiers are still supported with "User" and "Macro" types, which is good to know.

plastikat commented Oct 19, 2017

Thanks for the explanation about WinAPI restrictions. Initially I've observed the behavior with "Local" type, but at the time I didn't even think it's type-dependent...
I've done some additional tests and now I see that strict modifiers are still supported with "User" and "Macro" types, which is good to know.

@Maximus5

This comment has been minimized.

Show comment
Hide comment
@Maximus5

Maximus5 Oct 19, 2017

Owner

Local uses same technique as Global, but Local hotkeys are deregistered when ConEmu is minimized for example.

Owner

Maximus5 commented Oct 19, 2017

Local uses same technique as Global, but Local hotkeys are deregistered when ConEmu is minimized for example.

@plastikat

This comment has been minimized.

Show comment
Hide comment
@plastikat

plastikat Oct 21, 2017

AFAICT this issue's subject is clear now, so to help the maintainer with his chores I am closing it. Please reopen if you disagree.

plastikat commented Oct 21, 2017

AFAICT this issue's subject is clear now, so to help the maintainer with his chores I am closing it. Please reopen if you disagree.

@plastikat plastikat closed this Oct 21, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment