Git Product home page Git Product logo

Comments (24)

dankurka avatar dankurka commented on July 21, 2024

Reported by gwt.team.vli on 2006-09-20 05:10:14

from gwt.

dankurka avatar dankurka commented on July 21, 2024
User has reported same behavior with Opera.

Reported by gwt.team.ecc on 2006-10-31 13:35:41

from gwt.

dankurka avatar dankurka commented on July 21, 2024
test

Reported by aharsani on 2006-12-27 13:16:38

from gwt.

dankurka avatar dankurka commented on July 21, 2024
test of what?

Reported by gwt.team.ecc on 2006-12-28 20:39:41

from gwt.

dankurka avatar dankurka commented on July 21, 2024

Reported by gwt.team.bruce on 2007-01-25 18:46:48

  • Labels added: Category-UI

from gwt.

dankurka avatar dankurka commented on July 21, 2024
I am using the setKey funcion myself also and it is failing in Firefox. Is this bug

beeing considered for 1.4?

Reported by martin.portmann on 2007-04-27 22:43:27

from gwt.

dankurka avatar dankurka commented on July 21, 2024
Opera throws also a DOM exception. I have a patch for this issue that simple does
replace the original setKey method for Mozilla and Opera with an empty method.
Patch is relative to r1292.

Reported by martin.portmann on 2007-08-08 01:00:40


- _Attachment: [patch-setKey-r1292.diff](https://storage.googleapis.com/google-code-attachments/google-web-toolkit/issue-25/comment-7/patch-setKey-r1292.diff)_ - _Attachment: [TextBoxImplMozilla.java](https://storage.googleapis.com/google-code-attachments/google-web-toolkit/issue-25/comment-7/TextBoxImplMozilla.java)_ - _Attachment: [TextBoxImplOpera.java](https://storage.googleapis.com/google-code-attachments/google-web-toolkit/issue-25/comment-7/TextBoxImplOpera.java)_

from gwt.

dankurka avatar dankurka commented on July 21, 2024
Since the keyCode property is read-only in Mozilla, Firefox, and Opera, the
DOM.eventSetKeyCode() method is unreliable for cross-platform coding.  Ignoring the
method call in unsupported browsers is the equivalent of just catching the JavaScript
error and ignoring it, but in either case you have to find a workaround.

I'll search for some possible solutions, but we may end up deprecating the function
if we cannot find a suitable implementation for the other browsers (or at least Firefox).

Reported by gwt.team.jlabanca on 2007-08-08 15:09:10

from gwt.

dankurka avatar dankurka commented on July 21, 2024

Reported by gwt.team.jlabanca on 2007-08-08 18:54:32

  • Status changed: ReviewPending

from gwt.

dankurka avatar dankurka commented on July 21, 2024
We may have a solution that works across all browsers for the most common use case of
replacing characters in a TextBox.

Also, while Safari doesn't choke on this, it appears that it doesn't actually change
the value.  That means that the eventSetKeyCode method really only works in IE.

Reported by gwt.team.jlabanca on 2007-08-08 18:56:04

from gwt.

dankurka avatar dankurka commented on July 21, 2024
http://groups.google.com/group/Google-Web-Toolkit-
Contributors/browse_thread/thread/b9ba086f35112f62/#

Reported by martin.portmann on 2007-08-08 21:26:50

from gwt.

dankurka avatar dankurka commented on July 21, 2024

Reported by [email protected] on 2008-04-07 15:32:34

from gwt.

dankurka avatar dankurka commented on July 21, 2024
when using a KeyboardListener on a text box, I get this exception a lot : 

java.lang.AssertionError: attribute 'keyCode' not defined for event type 'mousemove'

is this the same problem ?

Reported by mehdi.rabah on 2008-07-19 23:01:58

from gwt.

dankurka avatar dankurka commented on July 21, 2024
If you're seeing this assertion, that means someone is calling Event.getKeyCode()
from within a non-keyboard event. Silly as it is that the Event interface allows you
to ask for such things... We added the assertion because different browsers do
different things in this case (including throwing errors) and there's no 'correct'
return value.

Reported by [email protected] on 2008-07-21 19:31:13

  • Status changed: Accepted
  • Labels added: Milestone-Planned
  • Labels removed: Release-1.1.10, Browser-Firefox

from gwt.

dankurka avatar dankurka commented on July 21, 2024
ok then maybe I should fill an issue? I have a DeckPanel which choose the widget to
display depending on mouse events. One of the widgets is a text box. 
(what I'm trying to do is a widget that display text infos in a static manner and
that can be edited if clicked on it, kinda like the "edit event" in google calendar)

Reported by mehdi.rabah on 2008-07-21 19:57:07

from gwt.

dankurka avatar dankurka commented on July 21, 2024
If you're seeing this assertion, but not explicitly calling getKeyCode() on a mouse
event object, then that sounds like a bug. If this is indeed the case, please file
a
new one and cc me on it so I can have a look.

Reported by [email protected] on 2008-07-21 20:17:31

from gwt.

dankurka avatar dankurka commented on July 21, 2024
I've finished my bug hunt. here is the result :
http://code.google.com/p/google-web-toolkit/issues/detail?id=2683

Reported by mehdi.rabah on 2008-07-21 21:07:45

from gwt.

dankurka avatar dankurka commented on July 21, 2024

Reported by [email protected] on 2008-10-21 21:31:36

  • Labels removed: priority-medium

from gwt.

dankurka avatar dankurka commented on July 21, 2024

Reported by ecc%[email protected] on 2009-01-05 15:16:39

  • Status changed: New

from gwt.

dankurka avatar dankurka commented on July 21, 2024
We should deprecate this method as it isn't supported on all browsers, and there
isn't a reliable way to fix that.

Reported by [email protected] on 2009-01-05 19:40:59

  • Status changed: Accepted
  • Labels added: Milestone-1_6_RC, Priority-High
  • Labels removed: Milestone-Planned

from gwt.

dankurka avatar dankurka commented on July 21, 2024
http://gwt-code-reviews.appspot.com/2002

Reported by [email protected] on 2009-01-09 16:53:21

  • Status changed: ReviewPending

from gwt.

dankurka avatar dankurka commented on July 21, 2024
committed as r4421

Reported by [email protected] on 2009-01-09 19:01:34

  • Status changed: FixedNotReleased

from gwt.

dankurka avatar dankurka commented on July 21, 2024
1_6_RC has been released.

Reported by [email protected] on 2009-05-11 19:54:22

  • Status changed: Fixed

from gwt.

dankurka avatar dankurka commented on July 21, 2024

Reported by [email protected] on 2011-02-09 00:21:45

  • Labels added: Milestone-1_6-RC
  • Labels removed: Milestone-1_6_RC

from gwt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.