Announcement

Do not use the forums to submit bug reports, feature requests or patches, submit a New Ticket instead.

#1 2005-04-23 00:18:10

Yermo
Xinha Authority
From: College Park, Md, USA
Registered: 2005-02-13
Posts: 143
Website

ev.keyCode list for FireFox?

In HTMLArea.prototype._editorEvent(ev) I'm noticing that FireFox under Linux is generating an ev.keyCode value of 18 on an expose event (e.g. when you bring up the Javascript console over the Xinha window and then lower it again)

Is there a list of what the various keyCode values might be? I'm guessing this is not an ASCII 18.

I've included a crazy number of trace messages to get a handle on how Xinha works. (this is from my xinha_ub branch which I'm going to committing the latest version of shortly) .. sorry but the line numbers in my branch don't match the line numbers in the trunk at all anymore.

On expose (i.e. no key click in Xinha anywhere, just exposing the window) I'm getting the following (two events a keydown and a keypress:):

HTMLArea.prototype._editorEvent():

(TextArea1) htmlarea.js:5967 - _editorEvent(): top with event type 'keydown'
(TextArea1) htmlarea.js:6382 - _editorEvent(): bottom
(TextArea1) htmlarea.js:5967 - _editorEvent(): top with event type 'keypress'
(TextArea1) htmlarea.js:5992 - _editorEvent(): keyEvent
(TextArea1) htmlarea.js:6010 - _editorEvent(): keyEvent - invoking onKeyPress method in plugin 'EnterParagraphs'

and this is at the default: case of switch(ev.which)

(TextArea1) htmlarea.js:6263 - _editorEvent(): ev.keyCode is '18' which (normal key) is '0'

It then invokes alot of other code that doesn't seem necessary:

(TextArea1) htmlarea.js:6382 - _editorEvent(): bottom
(TextArea1) htmlarea.js:4488 - updateToolbar(): top
(TextArea1) htmlarea.js:4959 - getAllAncestors(): top
(TextArea1) htmlarea.js:4892 - getParentElement(): top
(TextArea1) htmlarea.js:7082 - _createRange(): top
(TextArea1) htmlarea.js:3816 - activateEditor(): top - called by ' function (sel) { this.ddt._ddt("htmlarea.js", "7082", "_createRange(): top"); if (HTMLArea.'
(TextArea1) htmlarea.js:3842 - activateEditor(): Setting contentEditable to true
(TextArea1) htmlarea.js:3849 - activateEditor(): end
(startup) htmlarea.js:1718 - _lc: top with string 'Path'
(startup) htmlarea.js:2723 - setButtonStatus() : top with id 'enabled' value 'true"
(startup) htmlarea.js:2723 - setButtonStatus() : top with id 'enabled' value 'true"
(TextArea1) htmlarea.js:4985 - _getFirstAncestor(): top
(TextArea1) htmlarea.js:5040 - _activeElement(): top
(TextArea1) htmlarea.js:5117 - _selectionEmpty(): top
(TextArea1) htmlarea.js:5141 - _selectionEmpty(): isCollapsed
(TextArea1) htmlarea.js:5046 - _activeElement(): _selectionEmpty returned true. Returning null
(TextArea1) htmlarea.js:7082 - _createRange(): top
(TextArea1) htmlarea.js:3816 - activateEditor(): top - called by ' function (sel) { this.ddt._ddt("htmlarea.js", "7082", "_createRange(): top"); if (HTMLArea.'
(TextArea1) htmlarea.js:3842 - activateEditor(): Setting contentEditable to true
(TextArea1) htmlarea.js:3849 - activateEditor(): end
(startup) htmlarea.js:2723 - setButtonStatus() : top with id 'enabled' value 'true"
(startup) htmlarea.js:2723 - setButtonStatus() : top with id 'enabled' value 'true"
(startup) htmlarea.js:2723 - setButtonStatus() : top with id 'enabled' value 'true"
(startup) htmlarea.js:2723 - setButtonStatus() : top with id 'active' value 'false"
(startup) htmlarea.js:2723 - setButtonStatus() : top with id 'enabled' value 'true"
(startup) htmlarea.js:2723 - setButtonStatus() : top with id 'active' value 'false"
(startup) htmlarea.js:2723 - setButtonStatus() : top with id 'enabled' value 'true"
(startup) htmlarea.js:2723 - setButtonStatus() : top with id 'active' value 'false"
(startup) htmlarea.js:2723 - setButtonStatus() : top with id 'enabled' value 'true"
(startup) htmlarea.js:2723 - setButtonStatus() : top with id 'active' value 'false"
(startup) htmlarea.js:2723 - setButtonStatus() : top with id 'enabled' value 'true"
(startup) htmlarea.js:2723 - setButtonStatus() : top with id 'enabled' value 'true"
(startup) htmlarea.js:2723 - setButtonStatus() : top with id 'enabled' value 'true"
(startup) htmlarea.js:1907 - _makeColor(): top
(startup) htmlarea.js:1907 - _makeColor(): top
(startup) htmlarea.js:1907 - _makeColor(): top
(startup) htmlarea.js:2723 - setButtonStatus() : top with id 'enabled' value 'true"
(startup) htmlarea.js:2723 - setButtonStatus() : top with id 'active' value 'false"
(startup) htmlarea.js:2723 - setButtonStatus() : top with id 'enabled' value 'true"
(startup) htmlarea.js:2723 - setButtonStatus() : top with id 'active' value 'false"
(startup) htmlarea.js:2723 - setButtonStatus() : top with id 'enabled' value 'true"
(startup) htmlarea.js:2723 - setButtonStatus() : top with id 'active' value 'true"
(startup) htmlarea.js:2723 - setButtonStatus() : top with id 'enabled' value 'true"
(startup) htmlarea.js:2723 - setButtonStatus() : top with id 'active' value 'false"
(startup) htmlarea.js:2723 - setButtonStatus() : top with id 'enabled' value 'true"
(startup) htmlarea.js:2723 - setButtonStatus() : top with id 'active' value 'false"
(startup) htmlarea.js:2723 - setButtonStatus() : top with id 'enabled' value 'true"
(startup) htmlarea.js:2723 - setButtonStatus() : top with id 'active' value 'false"
(startup) htmlarea.js:2723 - setButtonStatus() : top with id 'enabled' value 'true"
(startup) htmlarea.js:2723 - setButtonStatus() : top with id 'enabled' value 'true"
(startup) htmlarea.js:2723 - setButtonStatus() : top with id 'enabled' value 'true"
(startup) htmlarea.js:2723 - setButtonStatus() : top with id 'enabled' value 'true"
(startup) htmlarea.js:2723 - setButtonStatus() : top with id 'enabled' value 'true"
(startup) htmlarea.js:2723 - setButtonStatus() : top with id 'enabled' value 'true"
(startup) htmlarea.js:2723 - setButtonStatus() : top with id 'enabled' value 'true"
(startup) htmlarea.js:2723 - setButtonStatus() : top with id 'enabled' value 'true"
(startup) htmlarea.js:2723 - setButtonStatus() : top with id 'enabled' value 'true"
(startup) htmlarea.js:2723 - setButtonStatus() : top with id 'enabled' value 'true"
(startup) htmlarea.js:2723 - setButtonStatus() : top with id 'enabled' value 'true"
(startup) htmlarea.js:2723 - setButtonStatus() : top with id 'enabled' value 'true"
(startup) htmlarea.js:2723 - setButtonStatus() : top with id 'enabled' value 'true"
(startup) htmlarea.js:2723 - setButtonStatus() : top with id 'enabled' value 'true"
(TextArea1) htmlarea.js:4892 - getParentElement(): top
(TextArea1) htmlarea.js:7082 - _createRange(): top
(TextArea1) htmlarea.js:3816 - activateEditor(): top - called by ' function (sel) { this.ddt._ddt("htmlarea.js", "7082", "_createRange(): top"); if (HTMLArea.'
(TextArea1) htmlarea.js:3842 - activateEditor(): Setting contentEditable to true
(TextArea1) htmlarea.js:3849 - activateEditor(): end
(startup) htmlarea.js:2723 - setButtonStatus() : top with id 'active' value 'false"
(startup) htmlarea.js:2723 - setButtonStatus() : top with id 'enabled' value 'true"
(TextArea1) htmlarea.js:4892 - getParentElement(): top
(TextArea1) htmlarea.js:7082 - _createRange(): top
(TextArea1) htmlarea.js:3816 - activateEditor(): top - called by ' function (sel) { this.ddt._ddt("htmlarea.js", "7082", "_createRange(): top"); if (HTMLArea.'
(TextArea1) htmlarea.js:3842 - activateEditor(): Setting contentEditable to true
(TextArea1) htmlarea.js:3849 - activateEditor(): end
(startup) htmlarea.js:2723 - setButtonStatus() : top with id 'active' value 'false"
(startup) htmlarea.js:2723 - setButtonStatus() : top with id 'enabled' value 'true"
(startup) htmlarea.js:2723 - setButtonStatus() : top with id 'active' value 'false"
(startup) htmlarea.js:2723 - setButtonStatus() : top with id 'enabled' value 'true"
(TextArea1) htmlarea.js:4364 - _undoTakeSnapshot(): top
(TextArea1) htmlarea.js:6973 - getInnerHTML(): top
(TextArea1) htmlarea.js:4803 - updateToolbar(): end

-----------------------------------------------------------------------------------------
Content Management with Business Intelligence      [url]http://www.formvista.com[/url]

Offline

Board footer

Powered by FluxBB