Skip to content
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.

Right ALT not supported (bad for International Keyboards) #35

Closed
enzy opened this issue Jun 12, 2014 · 351 comments · Fixed by #144
Closed

Right ALT not supported (bad for International Keyboards) #35

enzy opened this issue Jun 12, 2014 · 351 comments · Fixed by #144

Comments

@enzy
Copy link

enzy commented Jun 12, 2014

Original issue: atom/atom#1625


Use https://atom.io/packages/keyboard-localization until this issue gets fixed (should be in the Blink upstream).

@ghost
Copy link

ghost commented Aug 13, 2014

Ok definitely a reloading issue, I tried closing the tabs a few times. Then rebooted the entire editor - then nothing, and all of a sudden it kicked in (alt-q).

Left alt doesn't seem to work here either (alt-q) when trying to rebind the reflow command for paragraphs it just ignores and persists ctrl-alt-q

@guillaume86
Copy link

Is there a workaround while we wait for a fix?
I can't type a "]" (Right Alt + ")" on french keyboards).

@grenierdev
Copy link

@guillaume86 You might try to set the keymap in your personal config to !unset or !native as described here. I had to remove the keymap directly in the keymaps/win32.json of Atom.

@guillaume86
Copy link

Thanks I'll try to hack that something into init.coffee (!unset and !native don't work either).

Edit:
Got it removed with:

# remove offending keybindings (https://github.com/atom/atom-keymap/issues/35)
atom.keymap.keyBindings = atom.keymap.keyBindings.filter((binding, i) ->
  ['ctrl-alt-['].indexOf(binding.keystrokes) == -1
)

@DavidBadura
Copy link

I have written a simple plugin for German keyboard and Windows. Now i can write @ and \.
I will still improve the plugin and publish it.

https://github.com/DavidBadura/atom-keymap-compatible

@db6edr
Copy link

db6edr commented Aug 21, 2014

@DavidBadura Thanks! I' testdriving the plugin and am happy with it.

@ebertmi
Copy link

ebertmi commented Sep 16, 2014

@DavidBadura Plugin works great, though I couldn't find it in the packages list

@db6edr
Copy link

db6edr commented Sep 16, 2014

@waywaaard The plugin has not been released as an Atom package. I've created an issue with David to do so.

@tengwar
Copy link

tengwar commented Oct 2, 2014

The same with Polish keyboard layout. (QWERTY keyboard, where altgr+letter is used for typing national characters.)

@tcoopman
Copy link

Is this something that's on the roadmap to fix for 1.0?

@philipgiuliani
Copy link

It would be cool if it is possible to scope keybindings on a keyboard layout. Could be a solution!

@derwaldgeist
Copy link

Awesome!

@nathansobo
Copy link
Contributor

Hey everybody. So it would be great if you could test drive atom/atom#12697. Builds for each platform are linked at the bottom of the PR where you can find build artifacts to try out.

@ccoenen we really appreciated your thorough testing and reporting on the previous branch build and made some changes in response to it. We'd be grateful if you could download the latest build and make sure we've fixed the ctrl-alt-q issue and not broken anything else with the new adjustments.

@aschmu
Copy link

aschmu commented Oct 11, 2016

I seriously can't believe a text editor that's this promising won't let you well...type any text without unnecessary hassle !

@LionelL83
Copy link

For those who would like to test it, Atom 1.12.0-beta0 Windows installer is available since few hours via the usual link (https://atom.io/beta).
As mentioned above this version seems to solve this issue, so enjoy :-)

@LoDef
Copy link

LoDef commented Oct 14, 2016

For Swedish keyboards this works:

'atom-workspace atom-pane':
    'ctrl-alt-=': 'unset!'

@Spiralwise
Copy link

Spiralwise commented Oct 17, 2016

The beta seems to resolve this major issue!

@thorade
Copy link

thorade commented Oct 18, 2016

And there is also a long explanatory blog post from github:
http://blog.atom.io/2016/10/17/the-wonderful-world-of-keyboards.html

@realtime
Copy link

realtime commented Oct 28, 2016

This issue is still not resolved completely as of Atom 1.12.0-beta5, at least on Windows.

Pressing Ctrl-LeftAlt-(key) has the same effect as pressing RightAlt-(key) if the latter generates a character. In both cases the character defined by RightAlt-(key) is inserted and the shortcut defined for Ctrl-LeftAlt-(key) cannot be invoked.

Notepad++ handles this properly and can distinguish the key combinations.

@ghost
Copy link

ghost commented Nov 2, 2016

1.12.0-beta6 works for me 👍

@ghost
Copy link

ghost commented Nov 3, 2016

1.12.0-beta7 works as one would expect, too. I'm a new Hungarian user of Atom, and I'm happy. Cheers 🙂

@unigazer
Copy link

unigazer commented Nov 4, 2016

Can confirm, the upcoming 1.12 release fixes the international keyboard issue. Serbian keyboard works as it should. If you keyboard is still not working, you will be able to fix it via Atom API. Check out here: #164

@szimek
Copy link

szimek commented Nov 10, 2016

Got a question - I'm using Atom 1.12.0 on macOS 10.12.1 and got "Polish - Pro" keyboard selected. I can type all Polish-specific characters like ęóśłżźćń just fine using right Alt, but I can't type lowercase ą (uppercase Ą - alt-shift-a works fine), because alt-a binding is already taken by project-find:show-in-current-directory command. I fixed it by adding 'alt-a': 'unset!' to my keymap file for now, but I'm wondering if this fix was also supposed to somehow solve such problems?

EDIT: I've just noticed that I can't type uppercase Ś (i.e. alt-shift-s) as well, it's already taken by snippets:available command.

@Ben3eeE
Copy link
Contributor

Ben3eeE commented Nov 10, 2016

@szimek I believe it is supposed to fix the problem you describe. You can test it out today in Atom 1.12.

@ludwiktrammer
Copy link

I can confirm the issue @szimek is describing. I'm using the most recent Atom 1.12 with Mac OS X 10.11.6 with a Polish keyboard layout. Both ą (alt-a) and Ś (alt+shift+s) are still unavailable - Atom 1.12 unfortunately did not resolve the issue.

@Ben3eeE
Copy link
Contributor

Ben3eeE commented Nov 10, 2016

Hey @ludwiktrammer and @szimek. You should be able to work around this using the public custom keystroke resolver API.

Something like this to your init.coffee and restarting Atom should work, and the same for ą.

atom.keymaps.addKeystrokeResolver ({event}) ->
  if event.code is 'KeyS' and event.altKey and event.shiftKey
    return 'Ś'

If you could also open a new issue on this repository so we can track this that would be great, thanks!

@ludwiktrammer
Copy link

@Ben3eeE Thank you. The workaround works. I created a new issue #169.

@yalov
Copy link

yalov commented Feb 16, 2017

Hey @Ben3eeE, there is a thing like “3 and 4 layer of keyboard layout” (AltGr, AltGr+Shift), it is not few keyboard layout — many standard native keyboard layout has that 3 layer (AltGr). It collide with Ctrl+Alt hotkeys.

Even more, you can create your own layout with “The Microsoft Keyboard Layout Creator” or use some popular "typography" layout, so every key on keyboard can have that 3 layer, and user may want use 3 layer or hotkeys.

Public custom keystroke resolver API in init.coffee for every key it is cool, but main setting switch (Ctrl+Alt hotkeys <--> AltGr 3-4 layers) is better. It is not replace, but as an addition.

@neochief
Copy link

I have a typography layout, which relies a lot on AltGr. Needless to say, that Atom still conflicts with a lot of those keys. For instance, Ctrl+Alt+- and Ctrl+Alt+= are pretty useless in terms of Atom usage, but they block the — and ≠ characters on the layout for me.

It would be nice to have an option to disable all alt+ or alt+shift+ or alt+ctrl+ shortcuts altogether.

@Ben3eeE
Copy link
Contributor

Ben3eeE commented Feb 22, 2017

@yalov @neochief Can you please create a new issue for this? Also please completely fill out the provided issue template. It is easy that the discussion will be forgotten if it is kept here. Feel free to @mention me in the new issue after you created it.

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

Successfully merging a pull request may close this issue.