-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Ctrl-based shortcuts don't work on Linux #274
Comments
The default shortcuts for new tabs on Linux is But the reason behind it not working is because of hterm binding all keyboard shortcuts for terminal input and probably preventsDefault() so the keyboard event is not bubbling down to electron. See |
The problem is that the hterm thinks that when the meta key is pressed it's for hyperterm, and when not for the shell. // passthrough all the commands that are meant to control
// hyperterm and not the terminal itself
const oldKeyDown = hterm.Keyboard.prototype.onKeyDown_;
hterm.Keyboard.prototype.onKeyDown_ = function (e) {
if (e.metaKey) {
return;
}
return oldKeyDown.call(this, e);
}; It should check if the shortcut is in use by hyperterm and if not send it to the shell. |
Agreed, and then also the menu entries need to be updated to show the correct key combinations. |
Related: |
I already fixed it, but my internet is to shitty to create a pull request... stay tuned. |
On my Ubuntu 14.04: Ctrl+Shift+N > Not working |
Did anyone come with an idea on how to fix this ? Apparently keyboard shortcuts are registered through the menu accelerators. Wouldn't it be better to register them through a specific service which would manage all shortcuts inside Hyperterm ? |
Most "Cmd" shortcuts (corresponding to the windows key) are also not working on Gnome 3 (with Fedora 24). They are used to manage windows position, and the events never reach Hyperterm. |
Im with @arthurflachs that it would be great to centralize all keyboard shortcuts in some sort of service. Maybe something like https://github.com/atom/atom-keymap that could map a keyboard shortcut to an action. |
@nloomans what was your fix for this? |
Ah, I see. I am as will! I'm pretty new to the HyperTerm project, but if I find a work-around or a solution I'll post it here (and maybe do a pull request, if it is a good solution) |
@rauchg Hi, any preference on which fix for this is the right one? Would you like to see https://github.com/atom/atom-keymap used? |
@cjb that seems like a really good solution. Like @nloomans pointed out, our approach is really naive at the moment (equating meta key to app and otherwise to terminal). We're using mousetrap to capture shortcuts in addition to the ones set up on menubar accelerators: |
So... I don't know if this has changed or not, or if this is a solution, but @jaydson's list of shortcuts worked perfectly fine for me with the addition of the super key. e.g. I'm using HyperTerm 0.7.1 on ArchLinux (installed via the AUR), but I'd assume this universal among distros. |
@toroidal-code on Linux? |
Yeah. EDIT: And... it is because of Emacs bindings. |
I'm using ubuntu 14.04 and I just have to add the Would be nice if I didn't have to add that |
@RasCarlito Using Ubuntu 16.04 can confirm that adding |
Can you expose the keybindings in |
super is not on option for me, since I am using this as a meta key in i3. :/ |
I'd prefer that they work correctly out of the box. |
Please add #274 (comment) as a workaround in some docs/faqs until this gets fixed. |
super not working for me on Arch Linux with Gnome 3 and I'm having all the same issues described in #274 (comment) |
Yo everyone please test #1058! 🙌 |
So what's the actual way to workaround? I'm having no luck trying to use screen because the ctrl + a on hyper binds to select all text visible and not to screen's default control characters. I'm working on a Fedora Workstation with hyper 1.1.0. I appreciate any comment. |
Same, ctrl-a and ctrl-r are no longer available to bash, they get used for Hyper bindings instead. This presumably wasn't the intention? I suppose one way forward would be to disable bindings like ctrl-a that conflict with common uses? The usual thing on Linux is for the terminal to take ctrl-shift-n, not ctrl-n. |
Hey guys, reverse search doesn't seems to work. Any workaround for that? |
Tag for: #1509 |
Hi, Any news ? |
CLOSED in #1876 |
Thanks ! |
It was the problem with the corrupted keyboard. |
In the menus, most shortcuts are listed using the
ctrl
key as the only modifier (likely an automatic artifact from macOS'scmd
). Some examples:ctrl+c
ctrl+v
ctrl+w
ctrl+t
These shortcuts don't work, nor should they since they are essential shortcuts used within the shell. Copy and paste seem to work with the usual
ctrl+shift+c/v
, but I couldn't find working versions of any others in my few minutes of guessing.The text was updated successfully, but these errors were encountered: