Keyboard code triggers "charCode is meaningless" warnings in Firebug

RESOLVED INVALID

Status

P3
minor
RESOLVED INVALID
9 years ago
8 years ago

People

(Reporter: pcwalton, Unassigned)

Tracking

Details

(Reporter)

Description

9 years ago
In Bespin, SproutCore triggers the following Firebug warnings repeatedly:

    The 'charCode' property of a keyup event should not be used. The value is meaningless.

    The 'charCode' property of a keydown event should not be used. The value is meaningless.

Since there are many such warnings that tend to scroll the debugging console, this should probably be fixed upstream.

Comment 1

8 years ago
We're no longer using SC.
Status: NEW → RESOLVED
Last Resolved: 8 years ago
Resolution: --- → FIXED

Comment 2

8 years ago
Reopening with a new description. Julian reports that this problem is still present, but it is now in code under our management, not in SC.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Summary: SproutCore triggers "charCode is meaningless" warnings in Firebug → Keyboard code triggers "charCode is meaningless" warnings in Firebug
(Reporter)

Comment 3

8 years ago
Having trouble reproducing this. Julian, could you weigh in on how to reproduce?

Comment 4

8 years ago
Reproduction:

1. Load Bespin in Firefox
2. Open the Firefox Console
3. Make sure you have the option 'Show JavaScript Warning' activated
4. Select the editor and start typing

Result:

The message "The 'charCode' property of a keydown event should not be used. The value is meaningless." appears on the command line.

Expected Result:

There shouldn't be a warning.

If I can give you more assistent, let me know!
I believe this is related to jQuery (or JavaScript) more than Bespin itself. In particular, I've found that calling keydown() or keyup() rather than keypress() will trigger this message in Firebug.

However, from my limited experience, there are cases where using keypress() doesn't produce the desired result, but using keydown() or keyup() does.

Comment 7

8 years ago
ACETRANSITION

The Skywriter project has merged with Ajax.org's Ace project (the full server part of which is their Cloud9 IDE project). Background on the change is here:

http://mozillalabs.com/skywriter/2011/01/18/mozilla-skywriter-has-been-merged-into-ace/

The bugs in the Skywriter product are not necessarily relevant for Ace and quite a bit of code has changed. For that reason, I'm closing all of these bugs. Problems that you have with Ace should be filed in the Ace issue tracker at GitHub:

https://github.com/ajaxorg/ace/issues
Status: REOPENED → RESOLVED
Last Resolved: 8 years ago8 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.