-
Notifications
You must be signed in to change notification settings - Fork 17.4k
Keybindings with [ or ] do not work as expected on azerty layout #13131
Comments
Atom |
Hey, we have made many improvements to keystroke resolution since this report. Can you still reproduce this behavior on the latest version of Atom 1.12.4? |
half of them are working: the ones with ] are wokring but not the one with [ |
Hi, If I understand your report correctly you have something bound to Ctrl-Alt-[ which requires you to press (on Azerty FR) Ctrl-Alt-AltGr-^ and this works for |
oops sorry it's still the same as the first 4 lines of my first post. ctrl-alt-] fold one level instead of unfolding (ctrl-alt-altGr--) |
@Ben3eeE do we still need more information here? @solsticedhiver is this still happening on Atom v1.12.7 or later? |
@lee-dohm No we don't need more information. Thanks for the reminder 🙂 This is because of the these lines where we fall back to the non AltGraph character when any modifier besides AltGraph is depressed during the keystroke on Linux. This was introduced in atom/atom-keymap#152 and briefly discussed in atom/atom-keymap#193. I am leaning towards removing these lines right now but I am also unsure about the exact reason for them being introduced so I can't make that decision. @nathansobo Can you give some insight to why this case was added? Can we safely remove it? Currently it causes problems because we have to revert to retrieving information from X11 which causes problems on some Linux systems (E.g. Gnome depending on order of layouts). Maybe AltGraph should be a separate modifier on Linux in the future but just removing this case seems like an enhancement right now (Without me having any context). |
@Ben3eeE The logic in question was introduced in atom/atom-keymap#152. The main purpose of that PR was to introduce a workaround for a bug where Chrome was reporting the wrong On Mac and Windows, the behavior is more essential because On Linux, as far as I understand, there's a distinction between @Ben3eeE Thanks for your diligence on this issue. I also really appreciate the clear context you provided with your @-mention, your clearly worded question and explicit proposal for action. That made it really easy for me to jump in and help out here. |
Another solution would be to only fall back to the original value of the current This issue raises some questions for me though regarding the reachability of certain bindings on layouts like AZERTY for Mac and Windows... How does one type |
Swedish layout has the same problem. For example Using a Swedish keyboard layout the following keys require I believe that the key mappings in 'ctrl-]': 'editor:indent-selected-rows'
'ctrl-[': 'editor:outdent-selected-rows'
'ctrl-alt-[': 'editor:fold-current-row'
'ctrl-alt-]': 'editor:unfold-current-row'
'ctrl-alt-{': 'editor:fold-all'
'ctrl-alt-}': 'editor:unfold-all'
'ctrl-alt-shift-[': 'editor:fold-selection' I don't use folding and |
So, we're still falling back to the non-alt-graph character when modifiers other than alt-graph are used. We could prevent this behavior when the alt-graph character is in the ASCII range and get closer, but there's still a problem on Mac and Windows for bindings that involve a character accessed via alt-graph and one of the modifiers involved in expressing the "alt graph" modifier ( If you need to use a modifier to access a character, should that modifier be included in the keystroke string for that keystroke? For example, if you have to type I'm honestly not sure there's a single solution that will make everyone on every layout happy for this problem. Does anyone know of any precedent in other systems for addressing this ambiguity? |
I am using Atom 1.23.1 now and I still see problem wit those key bindings. They are not exactly the same as reported ealier but for example, I can't fold or unfold with he keyboard because ctrl-alt-[ or ] do not work. but ctrl-atl-" reported as ctrl-alt-dead (some dead key) by key-binding-relsolver fold one level |
@solsticedhiver I think @nathansobo's comment directly above still stands. Specifically:
I'd have to double-check with the devs, but I don't believe our keybinding system is capable of distinguishing between Ctrl+Alt and AltGr. If you or someone else wants to dig in to suggest a code change that could resolve that, I'm sure that we would take a look at it. Right now though, I don't think that the maintainer team is going to be investigating further soon. |
ok. I did not read that comment. I am on Linux, though with an azerty (French) layout. Aynway, I am using |
This issue has been automatically locked since there has not been any recent activity after it was closed. If you can still reproduce this issue in Safe Mode then please open a new issue and fill out the entire issue template to ensure that we have enough information to address your issue. Thanks! |
Prerequisites
Description
Keybinding with
[
or]
(and{
or}
) do not work as expected on azerty layout. On the azerty (french) layout, one has to use AltGr to get a[
or]
or{
or}
. But keybinding likectrl-]
orctrl-alt-]
do not work.A relative issue is keybinding like
ctrl-/
andctrl-k ctrl-0
do not work with theshift
key down like it is needed on azerty fr layout to use to get a / or a number. (fixed in beta)Steps to Reproduce
ctrl-alt-]
fold one level instead of unfoldingctrl-alt-[
does nothingctrl-]
outdent (desindent) instead of indentingctrl-[
does nothing(this 2 ones work as expected on beta)
ctrl-k ctrl-number
does work but without shift key has it should (as in qwerty layout)ctrl-/
works but without shift key (as in qwerty aloyut)Another issue is that the keybinding the the menu (Edit > Folding and Edit > Lines) do not match the ones listing in Settings > Keybindings
In settings:
ctrl-alt-{
: fold allctrl-alt-}
unfold allin menu:
maj-ctrl-alt-]
unfold allmaj-ctrl-alt-[
: fold allwhile
maj-]
is}
on a qwerty keyboard it is not true on azerty layoutVersions
It happens on atom 1.11.2 and atom 1.12-0 beta6 too on ubuntu 16.10
The text was updated successfully, but these errors were encountered: