Home Download Buy Blog Forum Support

keybinding with plus

keybinding with plus

Postby tgkeul on Tue Dec 02, 2008 9:47 pm

Since the last 15 years I'm used to duplicate a line with the keybinding alt+plus. This does not work in sublime.

Is there any reason for sublime to reject the key 'plus' at keybindings ?

regards
/tk
tgkeul
 
Posts: 140
Joined: Tue Dec 02, 2008 9:35 pm

Re: keybinding with plus

Postby tgkeul on Wed Dec 03, 2008 6:16 am

Hmm, I know that I can take another key. But this is not the answer to my question.

I cannot image why the key plus is disabled.

/tk
tgkeul
 
Posts: 140
Joined: Tue Dec 02, 2008 9:35 pm

Re: keybinding with plus

Postby vim on Wed Dec 03, 2008 7:11 am

well,l it is official, look at: http://www.sublimetext.com/beta at 20080925 Changelog
Keypad keys are no longer bindable as buttons, only as the equivalent characters. This makes sequence key bindings better behaved


i don't know why though...
vim
 
Posts: 298
Joined: Tue May 27, 2008 6:51 pm

Re: keybinding with plus

Postby tgkeul on Fri Dec 05, 2008 11:41 am

Ok, I use AutoHotKey to enable the keys on keypad.
[keypad plus] results in [ctrl+c] and [keypad enter] results in [ctrl+v]. I use this keybinding since 1991 with different editors.

What I'm looking for is the key with the + on it which is not on the keypad. I asume it will be a job for AutoHotKey to bind [alt+plus].

thank you
tgkeul
 
Posts: 140
Joined: Tue Dec 02, 2008 9:35 pm

Re: keybinding with plus

Postby jps on Tue Feb 10, 2009 12:22 pm

This is fixed now in the latest beta
jps
Site Admin
 
Posts: 3071
Joined: Wed Mar 19, 2008 12:33 pm

Re: keybinding with plus

Postby tgkeul on Tue Feb 10, 2009 10:04 pm

I'm sorry, but for me it doesn't work.
  • I made a fresh install with todays beta
  • I edited Default.sublime-keymap
  • I added <binding key="ctrl+plus" command="displayName"/>
  • and <binding key="alt+plus" command="displayName"/>
  • "ctrl+plus" does nothing,
  • "alt+plus" gives some noise

What did I miss?

P.S.: I'm happy that you do some polish on sublime-text :D
tgkeul
 
Posts: 140
Joined: Tue Dec 02, 2008 9:35 pm

Re: keybinding with plus

Postby vim on Tue Feb 10, 2009 10:10 pm

<binding key="alt+keypad_plus" command="newWindow"/>
works...
vim
 
Posts: 298
Joined: Tue May 27, 2008 6:51 pm

Re: keybinding with plus

Postby tgkeul on Tue Feb 10, 2009 10:19 pm

yes, and surprisingly "keypad_plus" without modifier is not supported.
:?
tgkeul
 
Posts: 140
Joined: Tue Dec 02, 2008 9:35 pm

Re: keybinding with plus

Postby jps on Wed Feb 11, 2009 5:41 am

You can bind to the character equivalent, '+' if you want to bind it without the modifier. The details of why it's setup this way are long and byzantine, but in short it involves the way windows input handing and button to character mapping works, and what Sublime needs to do to support multi-key bindings.
jps
Site Admin
 
Posts: 3071
Joined: Wed Mar 19, 2008 12:33 pm

Next

Return to Technical Support

Who is online

Users browsing this forum: ktaragorn and 28 guests