Home Download Buy Blog Forum Support

[BUG]Wrap in quotes, international keyboard layout

[BUG]Wrap in quotes, international keyboard layout

Postby escobera on Fri Aug 17, 2012 8:17 pm

Hello there,

I'm from Brazil and using a macbook, so I use the US-International keyboard layout. When I type single or double quotes I normally have to press another key before the final character is printed. That's how I do á é í ó ä ë ö, etc. The problem is, the action to print a quote sign alone is [QUOTE-KEY] -> [Space] (First press the quote key, and after that hit space), and when I do that in sublime the selection is transformed into '' or "" ( two single or double quote character).

Exemple (with double quotes):
US Layout
Code: Select all
selected code to be wrapped ===> "selected code to be wrapped"


US-International Layout
Code: Select all
selected code to be wrapped ===> ""
escobera
 
Posts: 1
Joined: Wed Mar 28, 2012 12:53 pm

Re: [BUG]Wrap in quotes, international keyboard layout

Postby robsonpeixoto on Fri Sep 14, 2012 12:23 am

I'm having the same problem
robsonpeixoto
 
Posts: 1
Joined: Sat Jun 09, 2012 1:09 am

Re: [BUG]Wrap in quotes, international keyboard layout

Postby ReinierK on Fri Sep 14, 2012 12:43 pm

I use US International too and I don't have this problem.
So I don't think it's an error with locales.

Do you guys have regular QWERTY keyboards or other layouts?
ReinierK
 
Posts: 23
Joined: Fri Aug 24, 2012 8:27 pm

Re: [BUG]Wrap in quotes, international keyboard layout

Postby bizoo on Fri Sep 14, 2012 1:14 pm

Open the console, type these 2 lines to enable log:
Code: Select all
sublime.log_input(True)
sublime.log_commands(True)

and try it again.
The console must log your keypress and the command that are executed.
If you don't understand the output, copy/past to this thread.
bizoo
 
Posts: 735
Joined: Wed Dec 08, 2010 6:53 am
Location: Switzerland

Re: [BUG]Wrap in quotes, international keyboard layout

Postby luizhdcosta on Sat Oct 06, 2012 6:15 pm

I have the same problem and it really bugs me. I have enabled logging and this is the result:

Using the US keyboard config:
Code: Select all
chr evt: " (0x22)
command: insert_snippet {"contents": "\"${0:$SELECTION}\""}


Using the US-International keyboard config:
Code: Select all
chr evt: " (0x22)
command: insert_snippet {"contents": "\"$0\""}


In my US-International keyboard config I need to press the quote key and hit space or another key after for the command for the character event to be triggered, somehow, due to this, sublime uses a different snipped and forgets about my selection.

I use this a lot and could not find a way to fix it, I would love if someone could help me fix it.
luizhdcosta
 
Posts: 1
Joined: Sat Oct 06, 2012 6:08 pm


Return to Technical Support

Who is online

Users browsing this forum: Google [Bot] and 12 guests