Pharo1.1 and Pharo1.0 difference when pressing CMD-Q

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Pharo1.1 and Pharo1.0 difference when pressing CMD-Q

Fernando olivero
Hi, using the MAC OS X VM and   pressing CMD-Q in Pharo1.1 sends InputEventSensor>>processEvent: evt
where the evt received is of type 4, a menu event. (just put a Transcript show: evt in the processEvent: evt  and you'll see).

Since EventSensorConstants defines:

"Types of events"
        EventTypeKeyboard := 2.
        EventTypeMenu := 4.

But in Pharo1.0 it generates an event of type 2, a keyboard event.

I assume that this changed because In Mac-OSX the CMD-Q is binded to a particular action ,
and in Pharo1.1 we are using HostSystemMenus.

But how can i override this behavior? To handle the CMD-Q as any other Keyboard event?

By the way there's also a DNU, when pressing CMD-Q.

Thanks,
Fernando



_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Fwd: Pharo1.1 and Pharo1.0 difference when pressing CMD-Q

Fernando olivero
The DNU is reported  in  ISSUE  1876.

Begin forwarded message:

From: Fernando olivero <[hidden email]>
Date: May 18, 2010 4:22:43 PM GMT+02:00
To: "[hidden email] Development" <[hidden email]>
Subject: [Pharo-project] Pharo1.1 and Pharo1.0 difference when pressing CMD-Q

Hi, using the MAC OS X VM and   pressing CMD-Q in Pharo1.1 sends InputEventSensor>>processEvent: evt
where the evt received is of type 4, a menu event. (just put a Transcript show: evt in the processEvent: evt  and you'll see).

Since EventSensorConstants defines:

"Types of events"
EventTypeKeyboard := 2.
EventTypeMenu := 4.

But in Pharo1.0 it generates an event of type 2, a keyboard event.

I assume that this changed because In Mac-OSX the CMD-Q is binded to a particular action ,
and in Pharo1.1 we are using HostSystemMenus.

But how can i override this behavior? To handle the CMD-Q as any other Keyboard event?

By the way there's also a DNU, when pressing CMD-Q.

Thanks,
Fernando



_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: Fwd: Pharo1.1 and Pharo1.0 difference when pressing CMD-Q

Mariano Martinez Peck


2010/5/18 Fernando olivero <[hidden email]>
The DNU is reported  in  ISSUE  1876.

Yes, it was complicated to use Man Menu in Pharo 1.1
Alain was working on that....but as he doesn't have a mac...

I needed to enable Mac Menu because I was trying to remove it from core and put it in dev or in PharoNonCore, but if it even doesn't work it does not have sense.

Cheers

Mariano


 

Begin forwarded message:

From: Fernando olivero <[hidden email]>
Date: May 18, 2010 4:22:43 PM GMT+02:00
To: "[hidden email] Development" <[hidden email]>
Subject: [Pharo-project] Pharo1.1 and Pharo1.0 difference when pressing CMD-Q

Hi, using the MAC OS X VM and   pressing CMD-Q in Pharo1.1 sends InputEventSensor>>processEvent: evt
where the evt received is of type 4, a menu event. (just put a Transcript show: evt in the processEvent: evt  and you'll see).

Since EventSensorConstants defines:

"Types of events"
EventTypeKeyboard := 2.
EventTypeMenu := 4.

But in Pharo1.0 it generates an event of type 2, a keyboard event.

I assume that this changed because In Mac-OSX the CMD-Q is binded to a particular action ,
and in Pharo1.1 we are using HostSystemMenus.

But how can i override this behavior? To handle the CMD-Q as any other Keyboard event?

By the way there's also a DNU, when pressing CMD-Q.

Thanks,
Fernando



_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

ISSUE 1876

Fernando olivero
In reply to this post by Fernando olivero
Hi , this issue is raising a DNU again , using a MAC.

Anyone needed to override this behavior?

Because i've need to be able to press CMD-Q, and CMD-W, which in Pharo1.0 i could,
but in Pharo1.1 get handled as menu events and not normal keyboard events.

Any ideas on how could i remove the host menu behavior?

Fernando



Begin forwarded message:

From: Fernando olivero <[hidden email]>
Date: May 18, 2010 4:22:43 PM GMT+02:00
To: "[hidden email] Development" <[hidden email]>
Subject: [Pharo-project] Pharo1.1 and Pharo1.0 difference when pressing CMD-Q

Hi, using the MAC OS X VM and   pressing CMD-Q in Pharo1.1 sends InputEventSensor>>processEvent: evt
where the evt received is of type 4, a menu event. (just put a Transcript show: evt in the processEvent: evt  and you'll see).

Since EventSensorConstants defines:

"Types of events"
EventTypeKeyboard := 2.
EventTypeMenu := 4.

But in Pharo1.0 it generates an event of type 2, a keyboard event.

I assume that this changed because In Mac-OSX the CMD-Q is binded to a particular action ,
and in Pharo1.1 we are using HostSystemMenus.

But how can i override this behavior? To handle the CMD-Q as any other Keyboard event?

By the way there's also a DNU, when pressing CMD-Q.

Thanks,
Fernando



_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: ISSUE 1876

Stéphane Ducasse
may be we should define a setting for that.

Stef

On Jun 10, 2010, at 12:08 PM, Fernando olivero wrote:

> Hi , this issue is raising a DNU again , using a MAC.
>
> Anyone needed to override this behavior?
>
> Because i've need to be able to press CMD-Q, and CMD-W, which in Pharo1.0 i could,
> but in Pharo1.1 get handled as menu events and not normal keyboard events.
>
> Any ideas on how could i remove the host menu behavior?
>
> Fernando
>
>
>
> Begin forwarded message:
>
>> From: Fernando olivero <[hidden email]>
>> Date: May 18, 2010 4:22:43 PM GMT+02:00
>> To: "[hidden email] Development" <[hidden email]>
>> Subject: [Pharo-project] Pharo1.1 and Pharo1.0 difference when pressing CMD-Q
>> Reply-To: "[hidden email]" <[hidden email]>
>>
>> Hi, using the MAC OS X VM and   pressing CMD-Q in Pharo1.1 sends InputEventSensor>>processEvent: evt
>> where the evt received is of type 4, a menu event. (just put a Transcript show: evt in the processEvent: evt  and you'll see).
>>
>> Since EventSensorConstants defines:
>>
>> "Types of events"
>> EventTypeKeyboard := 2.
>> EventTypeMenu := 4.
>>
>> But in Pharo1.0 it generates an event of type 2, a keyboard event.
>>
>> I assume that this changed because In Mac-OSX the CMD-Q is binded to a particular action ,
>> and in Pharo1.1 we are using HostSystemMenus.
>>
>> But how can i override this behavior? To handle the CMD-Q as any other Keyboard event?
>>
>> By the way there's also a DNU, when pressing CMD-Q.
>>
>> Thanks,
>> Fernando
>>
>>
>>
>> _______________________________________________
>> Pharo-project mailing list
>> [hidden email]
>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>
> _______________________________________________
> Pharo-project mailing list
> [hidden email]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project


_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
Reply | Threaded
Open this post in threaded view
|

Re: ISSUE 1876

johnmci
The fix is to look at a preference and then consider if you must use
the host menu support to remove the cmd-q from the os-x menu item

On 6/11/10, Stéphane Ducasse <[hidden email]> wrote:

> may be we should define a setting for that.
>
> Stef
>
> On Jun 10, 2010, at 12:08 PM, Fernando olivero wrote:
>
>> Hi , this issue is raising a DNU again , using a MAC.
>>
>> Anyone needed to override this behavior?
>>
>> Because i've need to be able to press CMD-Q, and CMD-W, which in Pharo1.0
>> i could,
>> but in Pharo1.1 get handled as menu events and not normal keyboard events.
>>
>> Any ideas on how could i remove the host menu behavior?
>>
>> Fernando
>>
>>
>>
>> Begin forwarded message:
>>
>>> From: Fernando olivero <[hidden email]>
>>> Date: May 18, 2010 4:22:43 PM GMT+02:00
>>> To: "[hidden email] Development"
>>> <[hidden email]>
>>> Subject: [Pharo-project] Pharo1.1 and Pharo1.0 difference when pressing
>>> CMD-Q
>>> Reply-To: "[hidden email]"
>>> <[hidden email]>
>>>
>>> Hi, using the MAC OS X VM and   pressing CMD-Q in Pharo1.1 sends
>>> InputEventSensor>>processEvent: evt
>>> where the evt received is of type 4, a menu event. (just put a Transcript
>>> show: evt in the processEvent: evt  and you'll see).
>>>
>>> Since EventSensorConstants defines:
>>>
>>> "Types of events"
>>> EventTypeKeyboard := 2.
>>> EventTypeMenu := 4.
>>>
>>> But in Pharo1.0 it generates an event of type 2, a keyboard event.
>>>
>>> I assume that this changed because In Mac-OSX the CMD-Q is binded to a
>>> particular action ,
>>> and in Pharo1.1 we are using HostSystemMenus.
>>>
>>> But how can i override this behavior? To handle the CMD-Q as any other
>>> Keyboard event?
>>>
>>> By the way there's also a DNU, when pressing CMD-Q.
>>>
>>> Thanks,
>>> Fernando
>>>
>>>
>>>
>>> _______________________________________________
>>> Pharo-project mailing list
>>> [hidden email]
>>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>>
>> _______________________________________________
>> Pharo-project mailing list
>> [hidden email]
>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>
>
> _______________________________________________
> Pharo-project mailing list
> [hidden email]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>


--
===========================================================================
John M. McIntosh <[hidden email]>
Corporate Smalltalk Consulting Ltd.  http://www.smalltalkconsulting.com
===========================================================================

_______________________________________________
Pharo-project mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project