Fix review nit from bug 298004. (syncs branch/trunk)

git-svn-id: svn://10.0.0.236/trunk@190911 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
gavin%gavinsharp.com
2006-02-22 22:54:08 +00:00
parent 86387cbbb2
commit cf438d4116

View File

@@ -1279,7 +1279,7 @@ function ctrlNumberTabSelection(event)
// in the range U+xxx6 - U+xxxF. Find the digit 1 corresponding to our
// character.
var digit1 = (event.charCode & 0xFFF0) | 1;
if (!regExp.exec(String.fromCharCode(digit1)))
if (!regExp.test(String.fromCharCode(digit1)))
digit1 += 6;
var index = event.charCode - digit1;