Closed Bug 154681 Opened 22 years ago Closed 21 years ago

tree and listbox shouldn't use search for keyboard navigation

Categories

(Core :: XUL, defect)

x86
Windows 98
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: neil, Assigned: neil)

References

()

Details

(Keywords: polish)

Attachments

(1 file)

When a tree or listbox has focus some keys don't behave including these three:
Error: unterminated parenthetical (
Error: unterminated character class [
Error: trailing \ in regular expression
Error: invalid quantifier {
The errors appear on the JS console when the appropriate key is pressed.
These and other regexp characters don't work as expected.
Attached patch Proposed patchSplinter Review
Keywords: patch, polish, review, ui
cc'ing kyle
-           else {
-             if (this._incrementalString.length != 1 || 
this._incrementalString.charAt(0) != key.charAt(0))
-               this._incrementalString += key;
-           }
+           else if (this._incrementalString != key)
+             this._incrementalString += key;

This fix has problem when user repeats pressing a same key, and it doesn't 
cause the JS exception.

Everything else is excellent! My original fix has low efficient and wrong 
string code. Good fix!
Assignee: hewitt → neil
Oh, forget my previous comment. I'm an idiot.
Comment on attachment 89446 [details] [diff] [review]
Proposed patch

r=kyle
Attachment #89446 - Flags: review+
Attachment #89446 - Flags: superreview?(bzbarsky)
fixed by bug 192346! thanks for neil's fix!
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Comment on attachment 89446 [details] [diff] [review]
Proposed patch

removing obsolete review request. Did this patch no review before the checkin ?
Attachment #89446 - Flags: superreview?(bzbarsky)
Matti, this patch has been combined into the fix for bug 192346 that got
r=jkeiser and sr=henry.jia.
Component: XP Toolkit/Widgets: Trees → XUL
QA Contact: shrir → xptoolkit.widgets
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: