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

Can't set hotkey for context menu item #1395

Closed
ebugusey opened this Issue Jan 10, 2018 · 4 comments

Comments

Projects
2 participants
@ebugusey

ebugusey commented Jan 10, 2018

Versions

ConEmu build: 171226 x64
OS version: Windows 8.1 x64
Used shell version (Far Manager, git-bash, cmd, powershell, cygwin, whatever): doesn't matter

Problem description

Manual says that I can use & to set hotkey for created context menu item.

Steps to reproduce

  1. Open Integration tab in settings.
  2. Set Menu item in ConEmu Here section to ConEmu &Here
  3. Press Register in the same section.
  4. Select some folder and press App key on keyboard.
  5. Press h.
  6. Press c multiple times.

Actual results

  1. There is actually a marker in context menu as it should be:
    screenshot 2018-01-10 16 41 52
  2. But after pressing hotkey it's not selected:
    screenshot 2018-01-10 16 41 52
  3. Pressing c works, but it doesn't run second ConEmu Here, it switches between first and second.
    screenshot 2018-01-10 16 46 33

Expected results

It should be possible to set hotkey for context menu item and use it.

Additional information

In Far context menu looks like this:
screenshot 2018-01-10 16 53 36
As expected pressing h doesn't work.

@Maximus5

This comment has been minimized.

Show comment
Hide comment
@Maximus5

Maximus5 Jan 10, 2018

Owner

As you said, hotkey marker is set. So the ConEmu work is done properly.

Bugs and issues about Windows Explorer features shall be reported to Microsoft. It's not in my competence.

Owner

Maximus5 commented Jan 10, 2018

As you said, hotkey marker is set. So the ConEmu work is done properly.

Bugs and issues about Windows Explorer features shall be reported to Microsoft. It's not in my competence.

@ebugusey

This comment has been minimized.

Show comment
Hide comment
@ebugusey

ebugusey Jan 10, 2018

No it's not Microsoft problem. ConEmu doesn't sets registry keys properly. I can demonstrate.
This is what ConEmu creates in registry:

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\*\shell\ConEmu &Here]
"Icon"="C:\\Program Files\\ConEmu\\ConEmu64.exe,0"

[HKEY_CLASSES_ROOT\*\shell\ConEmu &Here\command]
@="\"C:\\Program Files\\ConEmu\\ConEmu64.exe\" -here -run {powershell} -cur_console:n"

This is how it should be:

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\*\shell\ConEmu &Here]
"Icon"="C:\\Program Files\\ConEmu\\ConEmu64.exe,0"
@="ConEmu &Here"

[HKEY_CLASSES_ROOT\*\shell\ConEmu &Here\command]
@="\"C:\\Program Files\\ConEmu\\ConEmu64.exe\" -here -run {powershell} -cur_console:n"

Notice the difference in default key @="ConEmu &Here". ConEmu doesn't set it.

ebugusey commented Jan 10, 2018

No it's not Microsoft problem. ConEmu doesn't sets registry keys properly. I can demonstrate.
This is what ConEmu creates in registry:

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\*\shell\ConEmu &Here]
"Icon"="C:\\Program Files\\ConEmu\\ConEmu64.exe,0"

[HKEY_CLASSES_ROOT\*\shell\ConEmu &Here\command]
@="\"C:\\Program Files\\ConEmu\\ConEmu64.exe\" -here -run {powershell} -cur_console:n"

This is how it should be:

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\*\shell\ConEmu &Here]
"Icon"="C:\\Program Files\\ConEmu\\ConEmu64.exe,0"
@="ConEmu &Here"

[HKEY_CLASSES_ROOT\*\shell\ConEmu &Here\command]
@="\"C:\\Program Files\\ConEmu\\ConEmu64.exe\" -here -run {powershell} -cur_console:n"

Notice the difference in default key @="ConEmu &Here". ConEmu doesn't set it.

@Maximus5

This comment has been minimized.

Show comment
Hide comment
@Maximus5

Maximus5 Jan 10, 2018

Owner

OK, this Microsoft problem may be bypassed via some registry manipulations. But it's still MS problem - hotkey is displayed but not processed.

Owner

Maximus5 commented Jan 10, 2018

OK, this Microsoft problem may be bypassed via some registry manipulations. But it's still MS problem - hotkey is displayed but not processed.

@Maximus5 Maximus5 reopened this Jan 10, 2018

@Maximus5 Maximus5 added the settings label Jan 10, 2018

@Maximus5 Maximus5 added this to To Do in ConEmu via automation Jan 10, 2018

@ebugusey

This comment has been minimized.

Show comment
Hide comment
@ebugusey

ebugusey Jan 10, 2018

The only problem on Microsoft side is Windows displaying wrong marker where it shouldn't.
https://msdn.microsoft.com/en-us/library/windows/desktop/cc144171%28v=vs.85%29.aspx
https://superuser.com/questions/563885/hotkey-in-windows-context-menu
You are using this feature wrong way. Don't spill bullshit, please.

ebugusey commented Jan 10, 2018

The only problem on Microsoft side is Windows displaying wrong marker where it shouldn't.
https://msdn.microsoft.com/en-us/library/windows/desktop/cc144171%28v=vs.85%29.aspx
https://superuser.com/questions/563885/hotkey-in-windows-context-menu
You are using this feature wrong way. Don't spill bullshit, please.

@Maximus5 Maximus5 moved this from To Do to In progress in ConEmu Jan 11, 2018

@Maximus5 Maximus5 moved this from In progress to Ready for Testing in ConEmu Jan 11, 2018

@Maximus5 Maximus5 closed this Jan 12, 2018

ConEmu automation moved this from Ready for Testing to Done Jan 12, 2018

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