Skip to content
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

Setting hotkey configuration results in 'Could not register "summon" shortcut' error #25

Open
hyphaene opened this issue Aug 28, 2017 · 16 comments

Comments

@hyphaene
Copy link
Contributor

Hi,

I can't set any hotKey, so the plugin is not effective ..

I precise that I tried several combinations, all complying with the accelerator API from Electron.

No error on the console or whatsoever, only this alert box :

screenshot from 2017-08-28 21-11-50

Running on ubuntu 16.04

Cheers

@dcalhoun
Copy link
Collaborator

dcalhoun commented Aug 29, 2017

Sorry to hear about your continued issues. I think the core issue is that the plugin may not have ever been tested on an Ubuntu environment. Similar to #23, there is likely method calls that throw errors for Ubuntu.

The error dialog you are seeing is actually from a separate plugin called hyperterm-register-shortcut. So, I'm not sure where the real issue lies at the present.

I, unfortunately, do not have an Ubuntu environment to test the plugins against. If you are willing, you could setup hyperterm-summon to run as a "local" plugin, so that you could modify the source and see the results in your local Hyper.

If not, I'll see if I can figure out a way to test the plugin on Ubuntu.

@dcalhoun
Copy link
Collaborator

@hyphaene I published a refactored version of the plugin last night. Hopefully it resolves your issues. Would you be willing to give it another try for me please?

@hyphaene
Copy link
Contributor Author

hyphaene commented Sep 29, 2017 via email

@JohannesRudolph
Copy link

Same on Windows:
image

@dcalhoun
Copy link
Collaborator

@JohannesRudolph is there any other information you can provide (e.g. OS version, plugin version, Hyper config, etc)? The more details you share, the easier it is for me to debug the problem.

@edouard-lopez
Copy link

@dcalhoun

Env

$ hyper --version
Hyper version 2.0.0-canary.8
$ node --version
v8.9.1
$ npm --version
5.5.1
$ lsb_release -a
No LSB modules are available.
Distributor ID:	LinuxMint
Description:	Linux Mint 18.2 Sonya
Release:	18.2
Codename:	sonya

Note: base on Ubuntu Xenial.

Error

Could not register "summon" shortcut (F12)

Config

summon: {
  hideDock: true,
  hideOnBlur: true,
  hotkey: 'F12'
}

@dcalhoun
Copy link
Collaborator

@edouard-lopez do keys other than F12 work? Apparently there are OS-specific restrictions for global hotkeys (e.g. Windows).

@edouard-lopez
Copy link

@dcalhoun Sorry, I'm not using hyperterm anymore.

@0xhmn
Copy link

0xhmn commented Sep 23, 2020

F12 gives me the same error (ubuntu 18)

@dcalhoun
Copy link
Collaborator

@yar00001 do keys other than F12 work for you? Are you able to see in any errors in the Hyper console? Are you willing to share your Hyper configuration file?

@0xhmn
Copy link

0xhmn commented Sep 23, 2020

Actually now I am trying to change the hotkey to something else but it seems the shortcut is cached somewhere since I keep getting this error:

Screenshot from 2020-09-23 15-47-14

@dcalhoun
Copy link
Collaborator

@yar00001 Ctrl + ; is the default value for the plugin, so it may be that the value your attempting to set for hotkey is not being passed through. Does it work with a different keybinding if you quit and start Hyper after updating the setting?

@0xhmn
Copy link

0xhmn commented Sep 23, 2020

No I tried to set any other value (even Ctrl+; itself) but I keep getting error for Ctrl+;. I also checked keybindings in my os and Ctrl+; is not assigned to any other task.

@0xhmn
Copy link

0xhmn commented Sep 23, 2020

Actually I had a syntax error in my configs, but still the same error:
Screenshot from 2020-09-23 16-01-32

@dcalhoun
Copy link
Collaborator

@yar00001 thanks for the information. I'm still thinking the core issue resides in the hyperterm-register-shortcut module, which is a dependency for this package. I'm not as familiar with its internals, as I did not write it.

Unfortunately, I do not have an Ubuntu environment to test the plugins against and I do not believe I will have time to debug it soon. If you are willing, you could setup hyperterm-summon to run as a "local" plugin, so that you could modify the source and see the results in your local Hyper.

@dcalhoun dcalhoun changed the title can't set hotkey Setting hotkey configuration results in 'Could not register "summon" shortcut' error Sep 7, 2021
@thor314
Copy link

thor314 commented May 24, 2022

just leaving a note that this is still an issue for my Ubuntu distribution.

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

No branches or pull requests

6 participants