Sublime Forum

The command seems to be triggered by wrong keyboard shortcut

#1

The plugin “MarkdownEditor” has a shorcut to list references by hitting “ctrl+alt+l”, defined in defaults as:

"keys": ["ctrl+alt+l"], "command": "list_markdown_references", "context":
        [
            { "key": "selector", "operator": "equal", "operand": "text.html.markdown", "match_all": true }
        ]
    },

But the Sublime Editor triggers this command when I hit “alt+l”, without the “ctrl” key.

0 Likes

#2

Any chance this happens only on right one? Right alt key is considered alt+ctrl in some keyboard layouts/keyboards—german for example. Its commonly labeled AltGr when but not always.

0 Likes

#3

See Shortcuts on international keyboards?.

0 Likes

#4

I used the method that is described in the link provided by @guilermoo and I notice that indeed, when I press right alt + l, Sublime gets key event control+alt+l

>>> sublime.log_input(True)
key evt: control+alt+l
chr evt: ł (0x142)
key evt: alt+l

Are there any way to prevent problematic keys combinations from being assigned to shortcuts? The “noop” command does not work as I expected, because it blocks typing.

0 Likes

#5

If you’re pressing the Alt Gr key (what you refer to as “right Alt”), that’s standard behavior, btw.

0 Likes