Sublime Forum

[SOLVED] Can't use the backslash("\") key

#1

Hello,
Recently, I noticed that my \ key (by pressing alt gr and 8 i’m on an azerty keyboard) wasn’t detected by sublime text. Weird, considering that it works anywhere else (look \\\\\ :wink:). It is a symbol quite used and if someone has a solution, I’ll take it with great pleasure.
Thank you
Ilwan

PS : sorry about my english x)

0 Likes

#2

You could try to open the ST console ctrl+` and write sublime.log_commands(True); sublime.log_input(True). Afterwards press \ and look at the output.

0 Likes

#3

Hey hey, on AZERTY, I’ve never been able to run this shortcut :smile: (you have to do ctrl+alt or alt gr to do a ` ).

As @r-stein said, open up the console (with View -> show console), and paste this in:

sublime.log_commands(True); sublime.log_input(True)

It’ll log every command that is ran (almost) and every char you type in.

BTW, to stop the log, you can do this:

sublime.log_commands(False); sublime.log_input(False)

PS: Are you french?

0 Likes

#4

Sooo I get this : key evt: control+alt+8 command: show_upload_output
I guess there is a shortcut associated with this key but I don’t understand which.
Thx for your help.
And yes I am french

0 Likes

#5

Should be solved by adding a keybinding

    {
        "keys": ["ctrl+alt+8"],
        "command": "insert",
        "args": {
            "characters": "\\"
        }
    },
0 Likes

#6

Got it : it’s the package Arduino like IDE that replaces the input… I guess they the developper didn’t thought of azerty keyboards.

Anyway thank you all x)
Problem solved

0 Likes