[Pharo-project] Do we get rid of the KeyDecodeTable in InputEventSensor?
It's supposed to do some conversions, but sometimes, it just screws up the use input. It's main responsibility is to change *ctrl* into *alt*: installDuplicateKeyEntryFor: c | key | key := c asInteger. "first do control->alt key" KeyDecodeTable at: { key bitAnd: 16r9F . 2 } put: { key . 8 }. "then alt->alt key" KeyDecodeTable at: { key . 8 } put: { key . 8 } And then it confuses stuff. For example, Ctrl + tab is decoded as ctrl + $i, since $i asInteger bitAnd: 16r9F = Character tab asInteger And btw, I love my ctrl key and want to have more fancy and sexy shortcuts, so this F*** table is bothering :). Opinions? Guille
And there is also a ControlAltKeyDecodePolicy class var that gets not used nor updated by anybody, nor appearing in settings. On Sun, Apr 22, 2012 at 4:53 PM, Guillermo Polito <guillermopolito@gmail.com
wrote:
It's supposed to do some conversions, but sometimes, it just screws up the use input. It's main responsibility is to change *ctrl* into *alt*:
installDuplicateKeyEntryFor: c | key | key := c asInteger. "first do control->alt key" KeyDecodeTable at: { key bitAnd: 16r9F . 2 } put: { key . 8 }. "then alt->alt key" KeyDecodeTable at: { key . 8 } put: { key . 8 }
And then it confuses stuff. For example, Ctrl + tab is decoded as ctrl + $i, since
$i asInteger bitAnd: 16r9F = Character tab asInteger
And btw, I love my ctrl key and want to have more fancy and sexy shortcuts, so this F*** table is bothering :).
Opinions? Guille
http://code.google.com/p/pharo/issues/detail?id=5658&thanks=5658&ts=13351066... On Sun, Apr 22, 2012 at 4:56 PM, Guillermo Polito <guillermopolito@gmail.com
wrote:
And there is also a ControlAltKeyDecodePolicy class var that gets not used nor updated by anybody, nor appearing in settings.
On Sun, Apr 22, 2012 at 4:53 PM, Guillermo Polito < guillermopolito@gmail.com> wrote:
It's supposed to do some conversions, but sometimes, it just screws up the use input. It's main responsibility is to change *ctrl* into *alt*:
installDuplicateKeyEntryFor: c | key | key := c asInteger. "first do control->alt key" KeyDecodeTable at: { key bitAnd: 16r9F . 2 } put: { key . 8 }. "then alt->alt key" KeyDecodeTable at: { key . 8 } put: { key . 8 }
And then it confuses stuff. For example, Ctrl + tab is decoded as ctrl + $i, since
$i asInteger bitAnd: 16r9F = Character tab asInteger
And btw, I love my ctrl key and want to have more fancy and sexy shortcuts, so this F*** table is bothering :).
Opinions? Guille
On Sun, Apr 22, 2012 at 4:56 PM, Guillermo Polito <guillermopolito@gmail.com
wrote:
And there is also a ControlAltKeyDecodePolicy class var that gets not used nor updated by anybody, nor appearing in settings.
Ok, I found the setting, I was looking for the mutator :). Does someone use it? :S
On Sun, Apr 22, 2012 at 4:53 PM, Guillermo Polito < guillermopolito@gmail.com> wrote:
It's supposed to do some conversions, but sometimes, it just screws up the use input. It's main responsibility is to change *ctrl* into *alt*:
installDuplicateKeyEntryFor: c | key | key := c asInteger. "first do control->alt key" KeyDecodeTable at: { key bitAnd: 16r9F . 2 } put: { key . 8 }. "then alt->alt key" KeyDecodeTable at: { key . 8 } put: { key . 8 }
And then it confuses stuff. For example, Ctrl + tab is decoded as ctrl + $i, since
$i asInteger bitAnd: 16r9F = Character tab asInteger
And btw, I love my ctrl key and want to have more fancy and sexy shortcuts, so this F*** table is bothering :).
Opinions? Guille
+1 we will get there :) Stef On Apr 22, 2012, at 4:53 PM, Guillermo Polito wrote:
It's supposed to do some conversions, but sometimes, it just screws up the use input. It's main responsibility is to change ctrl into alt:
installDuplicateKeyEntryFor: c | key | key := c asInteger. "first do control->alt key" KeyDecodeTable at: { key bitAnd: 16r9F . 2 } put: { key . 8 }. "then alt->alt key" KeyDecodeTable at: { key . 8 } put: { key . 8 }
And then it confuses stuff. For example, Ctrl + tab is decoded as ctrl + $i, since
$i asInteger bitAnd: 16r9F = Character tab asInteger
And btw, I love my ctrl key and want to have more fancy and sexy shortcuts, so this F*** table is bothering :).
Opinions? Guille
May I add that some Cmd-Q on OSX really sucks for autocompletion? And Alt-Shift for Halos when you have multiple keyboards setup in Windows? (It is the system shortcut for toggle language (like FR->EN). Using the middle button like in Cuis would be much better methinks. Phil 2012/4/22 Guillermo Polito <guillermopolito@gmail.com>
It's supposed to do some conversions, but sometimes, it just screws up the use input. It's main responsibility is to change *ctrl* into *alt*:
installDuplicateKeyEntryFor: c | key | key := c asInteger. "first do control->alt key" KeyDecodeTable at: { key bitAnd: 16r9F . 2 } put: { key . 8 }. "then alt->alt key" KeyDecodeTable at: { key . 8 } put: { key . 8 }
And then it confuses stuff. For example, Ctrl + tab is decoded as ctrl + $i, since
$i asInteger bitAnd: 16r9F = Character tab asInteger
And btw, I love my ctrl key and want to have more fancy and sexy shortcuts, so this F*** table is bothering :).
Opinions? Guille
-- Philippe Back "Helping you hit the top 3 outcomes you really want to achieve" Mob: +32(0) 478 650 140 | Fax: +32 (0) 70 408 027 Mail: phil@highoctane.be| Web: http://philippeback.eu | Blog: http://philippeback.be High Octane SPRL rue cour Boisacq 101 1301 Bierges
On Apr 22, 2012, at 8:13 PM, phil@highoctane.be wrote:
May I add that some Cmd-Q on OSX really sucks for autocompletion?
indeed :) This is why ecompletion and ocompletion propose other ways
And Alt-Shift for Halos when you have multiple keyboards setup in Windows? (It is the system shortcut for toggle language (like FR->EN). Using the middle button like in Cuis would be much better methinks.
no it was like that in squeak and it always went in our way. now in Pharo20 we will change revisit all the logic of key mapping and probably use the work on guillermo to be able to plug the binding people want. I want emacs binding for text for example :)
Phil
2012/4/22 Guillermo Polito <guillermopolito@gmail.com> It's supposed to do some conversions, but sometimes, it just screws up the use input. It's main responsibility is to change ctrl into alt:
installDuplicateKeyEntryFor: c | key | key := c asInteger. "first do control->alt key" KeyDecodeTable at: { key bitAnd: 16r9F . 2 } put: { key . 8 }. "then alt->alt key" KeyDecodeTable at: { key . 8 } put: { key . 8 }
And then it confuses stuff. For example, Ctrl + tab is decoded as ctrl + $i, since
$i asInteger bitAnd: 16r9F = Character tab asInteger
And btw, I love my ctrl key and want to have more fancy and sexy shortcuts, so this F*** table is bothering :).
Opinions? Guille
-- Philippe Back "Helping you hit the top 3 outcomes you really want to achieve"
Mob: +32(0) 478 650 140 | Fax: +32 (0) 70 408 027 Mail: phil@highoctane.be | Web: http://philippeback.eu | Blog: http://philippeback.be
High Octane SPRL rue cour Boisacq 101 1301 Bierges
On 22 Apr 2012, at 21:41, Stéphane Ducasse wrote:
On Apr 22, 2012, at 8:13 PM, phil@highoctane.be wrote:
May I add that some Cmd-Q on OSX really sucks for autocompletion?
indeed :) This is why ecompletion and ocompletion propose other ways
And Alt-Shift for Halos when you have multiple keyboards setup in Windows? (It is the system shortcut for toggle language (like FR->EN). Using the middle button like in Cuis would be much better methinks.
no it was like that in squeak and it always went in our way. now in Pharo20 we will change revisit all the logic of key mapping and probably use the work on guillermo to be able to plug the binding people want. I want emacs binding for text for example :)
+50 for emacs-style keybindings. I would love feel as fluid in Pharo as I do in emacs :). Mark
Phil
2012/4/22 Guillermo Polito <guillermopolito@gmail.com> It's supposed to do some conversions, but sometimes, it just screws up the use input. It's main responsibility is to change ctrl into alt:
installDuplicateKeyEntryFor: c | key | key := c asInteger. "first do control->alt key" KeyDecodeTable at: { key bitAnd: 16r9F . 2 } put: { key . 8 }. "then alt->alt key" KeyDecodeTable at: { key . 8 } put: { key . 8 }
And then it confuses stuff. For example, Ctrl + tab is decoded as ctrl + $i, since
$i asInteger bitAnd: 16r9F = Character tab asInteger
And btw, I love my ctrl key and want to have more fancy and sexy shortcuts, so this F*** table is bothering :).
Opinions? Guille
-- Philippe Back "Helping you hit the top 3 outcomes you really want to achieve"
Mob: +32(0) 478 650 140 | Fax: +32 (0) 70 408 027 Mail: phil@highoctane.be | Web: http://philippeback.eu | Blog: http://philippeback.be
High Octane SPRL rue cour Boisacq 101 1301 Bierges
On 22 Apr 2012, at 19:13, phil@highoctane.be wrote:
May I add that some Cmd-Q on OSX really sucks for autocompletion?
And Alt-Shift for Halos when you have multiple keyboards setup in Windows? (It is the system shortcut for toggle language (like FR->EN). Using the middle button like in Cuis would be much better methinks.
+1, although I don't have a middle button on my trackpad :). Cmd-click would be good for halos on OS X. It i recall this is used in Xcode (interface builder) when manipulating graphical elements etc.
Phil
2012/4/22 Guillermo Polito <guillermopolito@gmail.com> It's supposed to do some conversions, but sometimes, it just screws up the use input. It's main responsibility is to change ctrl into alt:
installDuplicateKeyEntryFor: c | key | key := c asInteger. "first do control->alt key" KeyDecodeTable at: { key bitAnd: 16r9F . 2 } put: { key . 8 }. "then alt->alt key" KeyDecodeTable at: { key . 8 } put: { key . 8 }
And then it confuses stuff. For example, Ctrl + tab is decoded as ctrl + $i, since
$i asInteger bitAnd: 16r9F = Character tab asInteger
And btw, I love my ctrl key and want to have more fancy and sexy shortcuts, so this F*** table is bothering :).
Opinions? Guille
-- Philippe Back "Helping you hit the top 3 outcomes you really want to achieve"
Mob: +32(0) 478 650 140 | Fax: +32 (0) 70 408 027 Mail: phil@highoctane.be | Web: http://philippeback.eu | Blog: http://philippeback.be
High Octane SPRL rue cour Boisacq 101 1301 Bierges
participants (4)
-
Guillermo Polito -
Mark Smith -
phil@highoctane.be -
Stéphane Ducasse