NyaoVim icon indicating copy to clipboard operation
NyaoVim copied to clipboard

Ctrl+Letter does not seem to work on Azerty keyboard on Linux/Fedora

Open pcaneill opened this issue 9 years ago • 9 comments

I am starting to play around with NyaoVim and it works great :) expect for all Ctrl + letter action.

Expected Behavior

Ctrl + v to vertically select

Actual Behavior

Only v is catch by neovim

Steps to Reproduce (including precondition)

No particular steps, simply open a file with some content.

Screenshot on This Problem (if possible)

Here the output of Ctrl-v

image

Your Environment

  • OS: Linux/fedora
  • NyaoVim version: NyaoVim version 0.0.19 electron : 0.37.5 chrome : 49.0.2623.75 node : 5.10.0 v8 : 4.9.385.28
  • nvim version: NVIM v0.1.4-23-gf47a20a
  • Keyboard layout: azerty
  • Linux: Window manager: awesome & KDE

pcaneill avatar Apr 14 '16 13:04 pcaneill

On my other computer, Debian & Gnome NyaoVim works perfectly fine.

pcaneill avatar Apr 14 '16 19:04 pcaneill

I'm getting a similar issue on Manjaro with Colemak, except that, rather than treating, say, as y as with @Moeryn's issue, I'm getting , which is what it would've been if I were using QWERTY. This happens for all keys pressed with Ctrl.

ghost avatar Apr 26 '16 20:04 ghost

Same issue here with Dvorak layout; issue goes away immediately if I change the layout to QWERTY -- so looks like it's a general issue with non-QWERTY layouts?

amagee avatar Dec 04 '16 23:12 amagee

Did a bit of digging. Turns out that in the 'keydown' handler NeovimInput.prototype.onInputNonText, event.key is already wrong. This seems relevant: https://github.com/atom/atom-keymap/issues/37

amagee avatar Dec 04 '16 23:12 amagee

I'm having a similar problem with Atom installed via AUR. The Z / Y keys are inverted (I use a QWERTZ keyboard). When I type "z" in Atom the character is displayed correctly (a "z" apperas), but when I use a shortcut it is inverted.

Edit: Switching back to Atom downloaded from atom.io solves the issue

denysvitali avatar Dec 12 '16 19:12 denysvitali

It seems this can be traced to using a later version of Electron: https://github.com/atom/atom/issues/13170 - I am seeing the Ctrl + dvorak error on Manjaro with electron 1.4.12-1 installed.

I solved by uninstalling the community edition and installing atom-editor-bin from AUR (which bundles the correct version of electron) https://bugs.archlinux.org/task/50357

RMKD avatar Dec 18 '16 13:12 RMKD

Just to say that update 1.4.12-2 of electron solved the problem of wrong keymap for Ctrl+<> bindings. This was discussed about in this ArchLinux bug report.

For ArchLinux users, this is now the version available from official community repo for (compiled on 17/12/2016).

Reylak avatar Dec 19 '16 13:12 Reylak

Will check, thanks @Reylak !

denysvitali avatar Dec 19 '16 13:12 denysvitali

Yep, I was able to fix the problem by editing the NyaoVim's package.json file, replacing the electron-prebuilt version to "*" and doing an npm upgrade.

amagee avatar Dec 22 '16 05:12 amagee