Hi Nicolai!
which event are you listening to? Which platform? :)
Keyup and keypress behave indeed differently though they use the same data structure (the event buffer array) to send the event from the vm to the image. Some fields that are valid for keyup are not for keypress and vice-versa.
Cheers, Guille
On Mon, Feb 17, 2014 at 2:01 PM, btc@openinworld.com wrote:
Nicolai Hess wrote:
Someone knows(remembers) why Ctrl+Enter is mapped to keyvalue 13 I would expect Ctrl+M to be mapped at this value.
Ctrl+l -> keyValue 12 Ctrl+Enter -> keyValue 13 Ctrl+n -> keyValue 14
I miss Ctrl+M -> keyValue ????
(see Fogbugz issue 12103 https://pharo.fogbugz.com/default.asp?12103 shortcuts for tools)
(I vagualy remember this is related to the VM and there was a reason for doing so, but don't know it anymore)
regards nicolai
Probably more than you wanted to know... http://answers.google.com/answers/threadview/id/267586.html http://www.everything2.org/index.pl?node=control%20codes cheers -ben
hi Guille,
platform: Windows.
actually I don't know which events :) keyup/keydown/keystroke?
It is how pharo dispatches events for global shortcuts ctrl-o + ctrl-w opens a Workspace. ctrl+o + ctrl+m should open a monticello browser, but this one doesn't work.
debugging HandMorph>>handleEvent: shows (pharo and squeak)
ctrl-w handle event (keyvalue->event) 23->[keystroke '<Ctrl-w>'] 87->[keyUp '<Ctrl-W>'] )
and ctrl-m 77->[keyUp '<Ctrl-M>']
ctrl+Enter 10->[keystroke '<Ctrl-j>'] 13->[keyUp '<Ctrl-m>']
nicolai
2014-02-17 14:48 GMT+01:00 Guillermo Polito guillermopolito@gmail.com:
Hi Nicolai!
which event are you listening to? Which platform? :)
Keyup and keypress behave indeed differently though they use the same data structure (the event buffer array) to send the event from the vm to the image. Some fields that are valid for keyup are not for keypress and vice-versa.
Cheers, Guille
On Mon, Feb 17, 2014 at 2:01 PM, btc@openinworld.com wrote:
Nicolai Hess wrote:
Someone knows(remembers) why Ctrl+Enter is mapped to keyvalue 13 I would expect Ctrl+M to be mapped at this value.
Ctrl+l -> keyValue 12 Ctrl+Enter -> keyValue 13 Ctrl+n -> keyValue 14
I miss Ctrl+M -> keyValue ????
(see Fogbugz issue 12103 https://pharo.fogbugz.com/default.asp?12103 shortcuts for tools)
(I vagualy remember this is related to the VM and there was a reason for doing so, but don't know it anymore)
regards nicolai
Probably more than you wanted to know... http://answers.google.com/answers/threadview/id/267586.html http://www.everything2.org/index.pl?node=control%20codes cheers -ben
That is keypress. In keypress you don't have to rely on the keyvalue but on the charcode.
On Mon, Feb 17, 2014 at 3:39 PM, Nicolai Hess nicolaihess@web.de wrote:
hi Guille,
platform: Windows.
actually I don't know which events :) keyup/keydown/keystroke?
It is how pharo dispatches events for global shortcuts ctrl-o + ctrl-w opens a Workspace. ctrl+o + ctrl+m should open a monticello browser, but this one doesn't work.
debugging HandMorph>>handleEvent: shows (pharo and squeak)
ctrl-w handle event (keyvalue->event) 23->[keystroke '<Ctrl-w>'] 87->[keyUp '<Ctrl-W>'] )
and ctrl-m 77->[keyUp '<Ctrl-M>']
ctrl+Enter 10->[keystroke '<Ctrl-j>'] 13->[keyUp '<Ctrl-m>']
nicolai
2014-02-17 14:48 GMT+01:00 Guillermo Polito guillermopolito@gmail.com:
Hi Nicolai!
which event are you listening to? Which platform? :)
Keyup and keypress behave indeed differently though they use the same data structure (the event buffer array) to send the event from the vm to the image. Some fields that are valid for keyup are not for keypress and vice-versa.
Cheers, Guille
On Mon, Feb 17, 2014 at 2:01 PM, btc@openinworld.com wrote:
Nicolai Hess wrote:
Someone knows(remembers) why Ctrl+Enter is mapped to keyvalue 13 I would expect Ctrl+M to be mapped at this value.
Ctrl+l -> keyValue 12 Ctrl+Enter -> keyValue 13 Ctrl+n -> keyValue 14
I miss Ctrl+M -> keyValue ????
(see Fogbugz issue 12103 https://pharo.fogbugz.com/default.asp?12103 shortcuts for tools)
(I vagualy remember this is related to the VM and there was a reason for doing so, but don't know it anymore)
regards nicolai
Probably more than you wanted to know... http://answers.google.com/answers/threadview/id/267586.html http://www.everything2.org/index.pl?node=control%20codes cheers -ben
vm-dev@lists.squeakfoundation.org