Home Download Buy Blog Forum Support

Can't open console with keyboard (non-US layout)

Can't open console with keyboard (non-US layout)

Postby pm6 on Thu Jan 12, 2012 3:55 pm

I have a Spanish keyboard configured as such in Windows XP and in Arch Linux (XFCE).

According to the View menu, the key combination to open the console is Ctrl+`, but that combination doesn't work. I guess it's because ` is a dead key (i.e. it only works if you type something after it) in a Spanish layout. For example, to type it in this post, I have to press that key and then space.

I understand that using this key comes from a de facto standard in games and the assumption of a US layout. If so, games like HL2 for example still use the key to the left of the 1 key, even if using a keyboard with a Spanish layout.

Edit: the key to the left of the 1 key is º (no modifier), ª (with shift), \ (with AltGr). I changed the mapping of the console to Ctrl+º but it's still not working.

Edit 2: okay, I changed it to Ctrl+\ and now it somehow is working :)
pm6
 
Posts: 3
Joined: Tue Oct 11, 2011 12:49 am

Re: Can't open console with keyboard (non-US layout)

Postby tito on Thu Jan 12, 2012 4:03 pm

I've Spanish latinoamericano keyboard too and same problem.

You can log keypresses with the following command:

sublime.log_input(True)

This shows that Ctrl+| is shown as ctrl+\

Lo cual el keymap para añadir en "User/Default.sublime-keymap" sería

Code: Select all
  {
     "keys": ["ctrl+\\"], 
     "command": "show_panel",
     "args": {"panel": "console", "toggle": true}
   }


Saludos
Give APIs, let the community build the rest!
https://github.com/titoBouzout
tito
 
Posts: 846
Joined: Thu Sep 29, 2011 2:27 pm
Location: Montevideo, Uruguay

Re: Can't open console with keyboard (non-US layout)

Postby guillermooo on Thu Jan 12, 2012 4:20 pm

Sin modificar los atajos que vienen por defecto con Sublime Text, para un teclado tipo "Spanish - Modern Sort", la combinación de teclas para abrir la consola sería:

Code: Select all
Ctrl + ñ


Yo di con ella aporreando el teclado hasta que funcionó; no apliqué ningún método científico :)
guillermooo
 
Posts: 723
Joined: Thu Jul 23, 2009 9:06 am

Re: Can't open console with keyboard (non-US layout)

Postby robingram on Wed Aug 22, 2012 9:22 am

I have the same problem with a UK layout. I'm running Windows 7 with ST version 2.0.1 Build 2217.

Rob.
robingram
 
Posts: 2
Joined: Tue Aug 21, 2012 4:06 pm

Re: Can't open console with keyboard (non-US layout)

Postby robingram on Mon Sep 03, 2012 9:46 am

For info, I tried using:

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

And it records absolutely nothing when I type Ctrl+`. It reports use of other shortcuts correctly.

Rob.
robingram
 
Posts: 2
Joined: Tue Aug 21, 2012 4:06 pm


Return to Technical Support

Who is online

Users browsing this forum: No registered users and 33 guests