TextBox - cannot select text with mouse?

1,804 views
Skip to first unread message

membersound

unread,
Feb 22, 2013, 9:38:15 AM2/22/13
to google-we...@googlegroups.com
Hi,

can anyone confirm that it is not possible to select the content of a TextBox using Mouse only?

I found this isse from 2011 (http://code.google.com/p/google-web-toolkit/issues/detail?id=6468), but as there are no other complains, maybe I could be missing something?
Do I have to set some properties on textBox to enable mouse selection?

Jens

unread,
Feb 22, 2013, 9:48:21 AM2/22/13
to google-we...@googlegroups.com
I can select text in TextBox and ValueBox. Maybe a hidden div is above your TextBox? You can check that using your browsers developer tools.

-- J.

membersound

unread,
Feb 22, 2013, 12:52:24 PM2/22/13
to google-we...@googlegroups.com
Thanks, that's very strange.

Could I somehow have disabled mouse interaction on a input field globally??

I just added a TextBox upmost of my application, and the behaviour is the same: neither mouse selection nor POS1 or END keys work.

<g:SplitLayoutPanel>
 <g:north size='40'>
  <g:TextBox />

Manuel

unread,
Feb 22, 2013, 1:59:20 PM2/22/13
to google-we...@googlegroups.com
Hey,

maybe you styles have highlighted text in the same color as your background color?
Some time ago I had a webpage where the selected text just looked like the non selected... so maybe its just something in your css?

Regards,
Manuel

Kody

unread,
Feb 22, 2013, 2:21:42 PM2/22/13
to google-we...@googlegroups.com
CTRL+A for selecting the whole text works just as expected. So I can probably count css styles out.


2013/2/22 Manuel <develo...@gmail.com>
--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-tool...@googlegroups.com.
To post to this group, send email to google-we...@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

membersound

unread,
Feb 22, 2013, 2:34:12 PM2/22/13
to google-we...@googlegroups.com
What I also noticed: I have a CellTable/DataGrid with EditTextCells, which so use input text fields.
Within the onBrowserEvent() I can see that mouse clicks are received. BUT the cursor selection within text in the edit fields does not change.
I can move the cursor by Arrow Keys, but not by Mouse Clicks.

Tried this from different machines and different browsers, so it must be within my application.

That's very strange that this behaviour is the same vor all available input fields. Wether they come from a TextBox or are inside a CellTable es EditableTextCell, they just don't care...

Jens

unread,
Feb 22, 2013, 4:22:56 PM2/22/13
to google-we...@googlegroups.com
Are you doing any crazy things in your app? :-)

Have you used Event.addNativePreviewHandler() somewhere and the handler maybe busts certain mouse events? Or overwritten any onBrowserEvent() methods somewhere in your outer App UI?

Couldn't think of anything else that forbids you to select text on any textbox available in your app. My best guess is that you have canceled certain native events by mistake.

-- J.

Kody

unread,
Feb 23, 2013, 6:30:34 AM2/23/13
to google-we...@googlegroups.com
It turned out that it was indeed a CSS issue:

I did some -moz-user-select: -moz-none; to prevent doubleclick highlight issues on some of my components. And (of course) this would also affect the inputs. I excluded input elements now and everything works fine again.


2013/2/22 Jens <jens.ne...@gmail.com>

--
Reply all
Reply to author
Forward
0 new messages