Problem with Belgian Keyboard Layout


#1

This is a Belgian keyboard:

To print brackets [ ], we press AltGr + ^, AltGr + $. But Atom recognize it as

"ctrl-alt-[": "editor:fold-current-row", "ctrl-alt-]": "editor:unfold-current-row"

And our brackets aren’t printed :frowning:

EDIT:
I wrote my own configuration to remove those key binding:

[code]“atom-workspace”:
“ctrl-alt-[”:""
“ctrl-alt-]”:""

“atom-workspace atom-text-editor:not([mini])”:
“ctrl-alt-[”:""
“ctrl-alt-]”:""

[/code]

But now I’m getting the following error:

Atom Version: 1.0.0
System: Windows 7 64Bits
Thrown From: Atom Core

Stack Trace

Uncaught InvalidStateError: Failed to execute ‘dispatchEvent’ on ‘EventTarget’: The event provided is uninitialized.

At C:\Users\Julien\AppData\Local\atom\app-1.0.0\resources\app.asar\node_modules\atom-keymap\lib\keymap-manager.js:520

Error: Failed to execute 'dispatchEvent' on 'EventTarget': The event provided is uninitialized.
  at Error (native)
  at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (C:\Users\Julien\AppData\Local\atom\app-1.0.0\resources\app.asar\node_modules\atom-keymap\lib\keymap-manager.js:520:16)
  at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (C:\Users\Julien\AppData\Local\atom\app-1.0.0\resources\app.asar\node_modules\atom-keymap\lib\keymap-manager.js:355:22)
  at HTMLDocument.module.exports.WindowEventHandler.onKeydown (C:\Users\Julien\AppData\Local\atom\app-1.0.0\resources\app.asar\src\window-event-handler.js:180:20)

Commands

     -6:50.1.0 core:backspace (atom-text-editor.editor.mini.is-focused)
     -6:46.3.0 editor:unfold-current-row (atom-text-editor.editor.mini.is-focused)
     -6:44 core:backspace (atom-text-editor.editor.mini.is-focused)
  5x -6:39.7.0 editor:unfold-current-row (atom-text-editor.editor.mini.is-focused)
     -1:03.0 application:open-your-keymap (atom-workspace.workspace.scrollbars-visible-always.theme-one-dark-syntax.theme-one-dark-ui.find-visible)
     -0:46.7.0 editor:newline (atom-text-editor.editor.is-focused)
     -0:46.4.0 core:paste (atom-text-editor.editor.is-focused)
     -0:37 core:backspace (atom-text-editor.editor.is-focused)
     -0:35.1.0 core:save (atom-text-editor.editor.is-focused)
     -0:31.3.0 editor:consolidate-selections (atom-text-editor.editor.is-focused)
     -0:31.3.0 core:cancel (atom-text-editor.editor.is-focused)
  2x -0:28.8.0 core:backspace (atom-text-editor.editor.is-focused)
  2x -0:27.8.0 editor:unfold-current-row (atom-text-editor.editor.is-focused)
  2x -0:06.5.0 core:backspace (atom-text-editor.editor.is-focused)
  3x -0:04.6.0 editor:unfold-current-row (atom-text-editor.editor.is-focused)
  3x -0:00.9.0 core:backspace (atom-text-editor.editor.is-focused)

Config

{
  "core": {},
  "editor": {
    "invisibles": {}
  }
}

Installed Packages

# User
minimap, v4.10.0

# Dev
No dev packages

#2

The Alt-Gr key isn’t fully supported for international layouts, I’m afraid.
There is a long-standing issue open for this already, and internationalization is definitely one of the big objectives on the core team’s list post-1.0.


#3

Ok, thanks :smile:
(sorry about made a new topic for a known issue)


#4

No problem at all. There’s a lot of new users here and nobody expects everyone to dig through all the open issues before asking questions.
Hope Atom is still useful for you, even on your foreign keyboard :wink: