atom-terminal-tab icon indicating copy to clipboard operation
atom-terminal-tab copied to clipboard

Enhancement: Prevent swallowing selected Atom hotkeys

Open skylize opened this issue 6 years ago • 5 comments

I've got alt-shift-arrow hotkeys set up on atom-workspace for moving between panes, but terminal-tab is swallowing the input when focused.

Would be great if it was possible for these hotkeys, along a few others, like Ctrl-\ for Tree View, to reach the Atom workspace.

skylize avatar Jan 31 '18 02:01 skylize

Are there any temporary workarounds for this?

max-sixty avatar Feb 08 '18 01:02 max-sixty

I rant into this as well. Looking a little at the code, it seems that the terminal view sets the focus on the underlying xterm instance. It seems like xterm has it's own handlers of keys, and that's swallowing the input.

I was unable to remap the terminal-view hotkeys to anything prefixed with alt.

toumorokoshi avatar Apr 04 '18 13:04 toumorokoshi

Temporary, no. However, I do have a branch where I'm working on solving all of these keybinding-related issues. Xterm allows you to register your own key event handler, so I'm exploring some options there for this particular issue. It's a bit of a complicated issue as to where the shortcuts should be bound, since sending them all to Atom could break or make unusable programs in the Terminal and vice-versa. Hope to have some progress on this soon.

jsmecham avatar Apr 04 '18 13:04 jsmecham

It's a bit of a complicated issue as to where the shortcuts should be bound, since sending them all to Atom could break or make unusable programs in the Terminal and vice-versa.

I think ideally the user could list which bindings should be directed to the terminal, with all others directed to Atom. You could default the list to include a few obviously important terminal commands, like Ctrl-C.

skylize avatar Apr 04 '18 13:04 skylize

It's been quite a while, so I assume this isn't getting resolved, correct @jsmecham?

krystofl avatar Mar 26 '20 21:03 krystofl