Re: [Pharo-project] [Event related] Character vs Keys

2012-01-25 Thread Guillermo Polito
Does Cocoa VM send Function keys to the image? :D How difficult is it to add? On Tue, Jan 24, 2012 at 7:54 PM, Fernando Olivero wrote: > YES! the keyboard events handling is a mess that should be rethought > and simplified. > > I've recently played with Cocoa, and created a windowed app, that >

Re: [Pharo-project] [Event related] Character vs Keys

2012-01-25 Thread Esteban Lorenzano
Hi, yes, it should be possible, but I need to see and think a bit on the best way to implement it... maybe a week end task? best, Esteban El 24/01/2012, a las 7:54p.m., Fernando Olivero escribió: > YES! the keyboard events handling is a mess that should be rethought > and simplified. > > I'

Re: [Pharo-project] [Event related] Character vs Keys

2012-01-24 Thread Fernando Olivero
YES! the keyboard events handling is a mess that should be rethought and simplified. I've recently played with Cocoa, and created a windowed app, that captures events and sends them to a pharo image via sockets. so i learned how is done in COCOA. In Cocoa, there are 3 key events: NSKeyDown: The u

Re: [Pharo-project] [Event related] Character vs Keys

2012-01-24 Thread Stéphane Ducasse
I should learn more on the topic :). But on the principle yes I want to avoid all the hardcode stuff everywhere. Guillermo in feb we should have a coffee meeting with a group building new UI using Python (of course) and I could ask them how they manage keystrokes. Or we can also interact with th

Re: [Pharo-project] [Event related] Character vs Keys

2012-01-24 Thread Johan Fabry
I am all for cleaning this up, but I'm sorry that I cannot be very constructive on this. I'd just like to confirm that keyboard handling with regard to special keypresses does not behave correctly. Try this in a workspace or transcript: hit ctrl-1 This prints 1. Same for 2 till 8. Guess what ct

[Pharo-project] [Event related] Character vs Keys

2012-01-24 Thread Guillermo Polito
Hi! While playing (again) to add Function keys support, reading documentation of how keyboard handling works on our vm and other platforms: .Net: http://msdn.microsoft.com/en-us/library/system.windows.forms.control.keydown.aspx Javascript: http://www.quirksmode.org/js/keys.html And a quick expla