Sublime Forum

Cannot type quotation marks in JavaScript with Neo2

#1

I’m using the Neo2 keyboard layout. When the default JavaScript syntax is enabled, I cannot type a quotation mark. No character appears, also no other change is visible in the user interface. In Neo2, the key combination for quotation marks is alt+, - Capslock is mapped to alt, but you can also use the normal alt key. Neither works.

When I enter >>> sublime.log_input(True) in the Sublime console and hit alt+,, the output is:

key evt: alt+,
chr evt: " (0x22)

This is only an issue with the default JavaScript syntax, as well as with the package JavaScriptNext - ES6 Syntax and one other JavaScript package I forgot the name of. There is no problem with syntaxes for other languages are or when editing a file without syntax enabled. I did not find any keybindings for alt+, in the default or user sublime keymap.

Sublime version: 3.2.2, build 3211

Does anybody know what could be causing this?

0 Likes

#2

Does removing/disabling your javascript plugins solve the issue? Try sublime.log_commands(True) and then alt+, in the document where it isn’t working.

0 Likes

#3

Enabling log_commands revealed that a command called typescript_signature_popup is executed, which comes from the Typescript package. I didn’t even know I had that package installed. I removed it, since I don’t need it anyway. If anybody else encounters this issue (which also occurs with qwertz), here’s a description on how to disable the shortcut: https://github.com/microsoft/TypeScript-Sublime-Plugin/issues/736#issuecomment-585289322

Thanks for your help!

0 Likes