[squeak-dev] Re: unix 3.10-1 VM scrambles #PageUp #PageDown #End keys

nicolas cellier ncellier at ifrance.com
Wed Sep 17 23:06:35 UTC 2008


Seems like (evtBuf at: 3) holds the right value for these 3 keys.

Bert Freudenberg a écrit :
> Thanks Nicolas,
> 
> looks like you have found a genuine bug. I just confirmed the problem 
> occurs on an OLPC laptop, too. I opened this bug report about it
> 
> https://dev.laptop.org/ticket/8536
> 
> - Bert -
> 
> Am 17.09.2008 um 23:39 schrieb nicolas cellier:
> 
>>
>> Sorry to raise this again,
>> I am running a 3.10 image with some of OLPC fixes recommended by Bert 
>> ( http://bugs.squeak.org/view.php?id=7071 ) on a 3.10-1 VM in linux 
>> i86 X11, french keyboard.
>>
>> My (LanguageEnvironment currentPlatform) is (a Latin1Environment).
>> My (ActiveHand keyboardInterpreter) is (an UTF32InputInterpreter).
>> So far, so good, i can type éèà etc, dead letters work etc...
>>
>> But I experience annoying problems with these 3 keys:
>> #PageUp #PageDown and #End do not behave as expected.
>> (Same with keys above the arrow pad and unlocked numpad).
>>
>> Anyone experienced this or is it just me?
>> Anyone has a fix for it? VM update?
>>
>> Nicolas
>>
>>
>>
>> Gory details:
>> #PageUp key gives:
>>
>> evtBuf:     #(2 3830724 11 1 0 5 0 0)
>> buttons:     0
>> modifiers:     0
>> type:     #keyDown
>> pressType:     1
>> stamp:     3830724
>> char:     Character value: 5
>>
>> I would expect 11
>>
>> #PageDown key gives:
>> evtBuf:     #(2 4037346 12 1 0 11 0 0)
>> buttons:     0
>> modifiers:     0
>> type:     #keyDown
>> pressType:     1
>> stamp:     4037346
>> char:     Character value: 11
>>
>> I would expect 12
>>
>> #End key gives:
>> evtBuf:     #(2 4093084 4 1 0 12 0 0)
>> buttons:     0
>> modifiers:     0
>> type:     #keyDown
>> pressType:     1
>> stamp:     4093084
>> char:     Character newPage
>>
>> I would expect 4
>>
>> The source of my expectations is:
>> ParagraphEditor class>>#initializeCmdKeyShortcuts
>>
>> cmdMap at: 1 + 1 put: #cursorHome:.        "home key"
>> cmdMap at: 4 + 1 put: #cursorEnd:.         "end key"
>> cmdMap at: 8 + 1 put: #backspace:.         "ctrl-H or delete key"
>> cmdMap at: 11 + 1 put: #cursorPageUp:.     "page up key"
>> cmdMap at: 12 + 1 put: #cursorPageDown:.   "page down key"
>> cmdMap at: 13 + 1 put: #crWithIndent:.     "cmd-Return"
>> cmdMap at: 27 + 1 put: #offerMenuFromEsc:. "escape key"
>> cmdMap at: 28 + 1 put: #cursorLeft:.       "left arrow key"
>> cmdMap at: 29 + 1 put: #cursorRight:.      "right arrow key"
>> cmdMap at: 30 + 1 put: #cursorUp:.         "up arrow key"
>> cmdMap at: 31 + 1 put: #cursorDown:.       "down arrow key"
>> cmdMap at: 32 + 1 put: #selectWord:.       "space bar key"
>> cmdMap at: 127 + 1 put: #forwardDelete:.   "del key"
>>
>>
> 
> 
> 




More information about the Squeak-dev mailing list