Quantcast

Platform UI detect focus out / mouse click

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Platform UI detect focus out / mouse click

Patrik Suzzi-2
Hi All, 

I found an issue on the QuickAccess, and I will need suggestion to understand how to solve it.

If I click to quick access, a popup menu opens, but when I click on a menu item, the quickaccess shell stays open, and the dropdown menu shows up. 


When I started debugging, I realized that no focus out event is triggered, and also no mouse event is triggered when the user clicks on a menu item. 


Is this the intended expected behavior for the Eclipse UI?
In this case, how can I detect when a menu is clicked?


Best regards,

Patrik Suzzi
Consultant Software Engineer,
Eclipse Platform Committer

mobile: <a href="tel:333%20397%209300" value="+393333979300" target="_blank">+39 333 3979300

_______________________________________________
platform-ui-dev mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/platform-ui-dev
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Platform UI detect focus out / mouse click

Stefan Xenos-3
Where were you listening for the mouse event? An event filter on the Display would probably catch the mousedown.

On Mon, Apr 10, 2017 at 11:40 PM, Patrik Suzzi <[hidden email]> wrote:
Hi All, 

I found an issue on the QuickAccess, and I will need suggestion to understand how to solve it.

If I click to quick access, a popup menu opens, but when I click on a menu item, the quickaccess shell stays open, and the dropdown menu shows up. 


When I started debugging, I realized that no focus out event is triggered, and also no mouse event is triggered when the user clicks on a menu item. 


Is this the intended expected behavior for the Eclipse UI?
In this case, how can I detect when a menu is clicked?


Best regards,

Patrik Suzzi
Consultant Software Engineer,
Eclipse Platform Committer

mobile: <a href="tel:333%20397%209300" value="+393333979300" target="_blank">+39 333 3979300

_______________________________________________
platform-ui-dev mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/platform-ui-dev


_______________________________________________
platform-ui-dev mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/platform-ui-dev
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Platform UI detect focus out / mouse click

Patrik Suzzi-2
Stefan, 

It was in SearchField.java line 325, after shell.setVisible(nowvisible)

Best regards,
Patrik 

On 21 April 2017 at 00:01, Stefan Xenos <[hidden email]> wrote:
Where were you listening for the mouse event? An event filter on the Display would probably catch the mousedown.

On Mon, Apr 10, 2017 at 11:40 PM, Patrik Suzzi <[hidden email]> wrote:
Hi All, 

I found an issue on the QuickAccess, and I will need suggestion to understand how to solve it.

If I click to quick access, a popup menu opens, but when I click on a menu item, the quickaccess shell stays open, and the dropdown menu shows up. 


When I started debugging, I realized that no focus out event is triggered, and also no mouse event is triggered when the user clicks on a menu item. 


Is this the intended expected behavior for the Eclipse UI?
In this case, how can I detect when a menu is clicked?


Best regards,

Patrik Suzzi
Consultant Software Engineer,
Eclipse Platform Committer

mobile: <a href="tel:333%20397%209300" value="+393333979300" target="_blank">+39 333 3979300

_______________________________________________
platform-ui-dev mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/platform-ui-dev


_______________________________________________
platform-ui-dev mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/platform-ui-dev


_______________________________________________
platform-ui-dev mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/platform-ui-dev
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Platform UI detect focus out / mouse click

Daniel Megert
In reply to this post by Patrik Suzzi-2
What exactly is the problem you try to solve? When I tested it, it always closed the popup when the selected menu item opened a shell. Otherwise, there is no need to close it.

Dani



From:        Patrik Suzzi <[hidden email]>
To:        "Eclipse Platform UI component developers list." <[hidden email]>
Date:        11.04.2017 08:41
Subject:        [platform-ui-dev] Platform UI detect focus out / mouse click
Sent by:        [hidden email]




Hi All, 

I found an issue on the QuickAccess, and I will need suggestion to understand how to solve it.

If I click to quick access, a popup menu opens, but when I click on a menu item, the quickaccess shell stays open, and the dropdown menu shows up. 

see: https://www.youtube.com/watch?v=Fmy3AS_BJxo

When I started debugging, I realized that no focus out event is triggered, and also no mouse event is triggered when the user clicks on a menu item. 

see:https://www.youtube.com/watch?v=9RpW84TmnwU

Is this the intended expected behavior for the Eclipse UI?
In this case, how can I detect when a menu is clicked?

see: https://bugs.eclipse.org/bugs/show_bug.cgi?id=515056

Best regards,

Patrik Suzzi
Consultant Software Engineer,
Eclipse Platform Committer
https://about.me/psuzzi

mobile: <a href=tel:333%20397%209300 target=_blank>+39 333 3979300_______________________________________________
platform-ui-dev mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/platform-ui-dev



_______________________________________________
platform-ui-dev mailing list
[hidden email]
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/platform-ui-dev
Loading...