Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Focus problem on Mac
Focus problem on Mac [message #444670] Wed, 20 October 2004 09:45 Go to next message
xxx is currently offline xxxFriend
Messages: 6
Registered: July 2009
Junior Member
Hi,

I have a problem with FocusListener behaviour on Mac (OS X 10.3.5 and
Eclipse 3.1).

See my problem in the example below.

I use a FocusListener on Text widget text1 and I display a message in the
focusLost method.
If the focus is currently on text1 and I click on the button, this message
does not appear, whereas it works fine with Linux.

Any suggestion ?
Thanks
Helene
Re: Focus problem on Mac [message #445093 is a reply to message #444670] Mon, 25 October 2004 19:33 Go to previous messageGo to next message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
Buttons don't take focus when clicked on the Mac?

"H.ORTIZ" <xxx@xxx.com> wrote in message news:cl5c3a$u2o$1@eclipse.org...
> Hi,
>
> I have a problem with FocusListener behaviour on Mac (OS X 10.3.5 and
> Eclipse 3.1).
>
> See my problem in the example below.
>
> I use a FocusListener on Text widget text1 and I display a message in the
> focusLost method.
> If the focus is currently on text1 and I click on the button, this message
> does not appear, whereas it works fine with Linux.
>
> Any suggestion ?
> Thanks
> Helene
>
>
Re: Focus problem on Mac [message #445323 is a reply to message #444670] Tue, 02 November 2004 12:28 Go to previous messageGo to next message
Andre Weinand is currently offline Andre WeinandFriend
Messages: 66
Registered: July 2009
Member
On 20.10.2004 11:45 Uhr, in article cl5c3a$u2o$1@eclipse.org, "H.ORTIZ"
<xxx@xxx.com> wrote:

> Hi,
>
> I have a problem with FocusListener behaviour on Mac (OS X 10.3.5 and
> Eclipse 3.1).
>
> See my problem in the example below.
>
> I use a FocusListener on Text widget text1 and I display a message in the
> focusLost method.
> If the focus is currently on text1 and I click on the button, this message
> does not appear, whereas it works fine with Linux.
>
> Any suggestion ?


This seems to be the correct behavior on MacOS X (but I couldn't verify it
with Apple's HI Guidelines).
If you "turn on full keyboard access" on the "Keyboard Shortcuts" page of
the "Keyboard & Mouse" preference panel, you can better see the control that
has focus.
Now in any Apple application (e.g. Finder) open a dialog that has both a
text field and a button (e.g. "Connect to Server" in Go menu), click into
text field. Then click onto "+" button. Observe that focus isn't removed
from text field.
If you use the Tab key, you can assign focus to buttons too (and focus is
removed correctly from the text field).

--andre
Re: Focus problem on Mac [message #445378 is a reply to message #445093] Thu, 04 November 2004 16:35 Go to previous messageGo to next message
H.ORTIZ  is currently offline H.ORTIZ Friend
Messages: 22
Registered: July 2009
Junior Member
Hi Steve,

Sorry for my late answer (and my english too !) but I've just found it.

My problem is that I need to capture focus lost events on each of my Text
controls, howeover, on Mac, this event isn't triggered if I click on a
button, without leaving the Text control with TAB.




Steve Northover wrote:

> Buttons don't take focus when clicked on the Mac?

> "H.ORTIZ" <xxx@xxx.com> wrote in message news:cl5c3a$u2o$1@eclipse.org...
>> Hi,
>>
>> I have a problem with FocusListener behaviour on Mac (OS X 10.3.5 and
>> Eclipse 3.1).
>>
>> See my problem in the example below.
>>
>> I use a FocusListener on Text widget text1 and I display a message in the
>> focusLost method.
>> If the focus is currently on text1 and I click on the button, this message
>> does not appear, whereas it works fine with Linux.
>>
>> Any suggestion ?
>> Thanks
>> Helene
>>
>>
Re: Focus problem on Mac [message #445383 is a reply to message #445378] Thu, 04 November 2004 18:04 Go to previous messageGo to next message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
.... because focus doesn't actually leave the Text control. Is the blinking
i-beam still in the text control after the button is clicked? If so, the
Text control still has focus.

"H.ORTIZ" <hortiz@objetdirect.com> wrote in message
news:cmdlp2$ufa$1@eclipse.org...
> Hi Steve,
>
> Sorry for my late answer (and my english too !) but I've just found it.
>
> My problem is that I need to capture focus lost events on each of my Text
> controls, howeover, on Mac, this event isn't triggered if I click on a
> button, without leaving the Text control with TAB.
>
>
>
>
> Steve Northover wrote:
>
> > Buttons don't take focus when clicked on the Mac?
>
> > "H.ORTIZ" <xxx@xxx.com> wrote in message
news:cl5c3a$u2o$1@eclipse.org...
> >> Hi,
> >>
> >> I have a problem with FocusListener behaviour on Mac (OS X 10.3.5 and
> >> Eclipse 3.1).
> >>
> >> See my problem in the example below.
> >>
> >> I use a FocusListener on Text widget text1 and I display a message in
the
> >> focusLost method.
> >> If the focus is currently on text1 and I click on the button, this
message
> >> does not appear, whereas it works fine with Linux.
> >>
> >> Any suggestion ?
> >> Thanks
> >> Helene
> >>
> >>
>
>
Re: Focus problem on Mac [message #1798477 is a reply to message #445383] Mon, 19 November 2018 16:21 Go to previous messageGo to next message
João Pedro is currently offline João PedroFriend
Messages: 52
Registered: December 2014
Member
Did you ever found a solution to this? I'm having the same issue.
Re: Focus problem on Mac [message #1798479 is a reply to message #445383] Mon, 19 November 2018 16:29 Go to previous message
João Pedro is currently offline João PedroFriend
Messages: 52
Registered: December 2014
Member
Did you ever found a solution to this? I'm having the same issue.
Previous Topic:SWT in Java WebStart App stopped working on OSX after upgrading to Java 7
Next Topic:Eclipse crashes with ACCESS VIOLATION exception
Goto Forum:
  


Current Time: Thu Apr 18 10:00:28 GMT 2024

Powered by FUDForum. Page generated in 0.02704 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top