Closed Bug 119109 Opened 23 years ago Closed 23 years ago

Keyboard shortcuts not working

Categories

(Core :: DOM: UI Events & Focus Handling, defect)

defect
Not set
blocker

Tracking

()

VERIFIED FIXED

People

(Reporter: Morten, Assigned: jag+mozilla)

References

Details

(Keywords: regression, smoketest)

Attachments

(1 file)

pressing ctrl-t while browser (anywhere) has focus does nothing.
neither does 'n' in mailnews, ctrl-n in browser and so on.
Keywords: regression
On warpzilla 2002010911,
ctrl-t works as "reload" instead of ctrl-r,
ctrl-s works as "close tab" instead of ctrl-w,
ctrl-a still works fine...
Marking as smoketest blocker per #mozilla.
Keywords: smoketest
*** Bug 119129 has been marked as a duplicate of this bug. ***
Ctrl+End in the mail compose plain text editor opens the browser instead of
movign the cursor.
In the mailnews message list pane, the arrow keys are acting like the space bar.

In mail compose, Ctrl+N is acting like the arrow keys.
harish, we screwed up, but it's pretty simple to fix...

@@ -1018,9 +1017,8 @@
     nsMemory::Free(str);
   }
 
-  nsAutoString key;
-  if (!aCharCode) {
-    aCharCode = &key;
+  nsAutoString key(aCharCode);
+  if (key.IsEmpty()) {
     if (mType == NS_HANDLER_TYPE_XUL) {
       mHandlerElement->GetAttr(kNameSpaceID_None, nsXBLAtoms::key, key);
       if (key.IsEmpty()) 

Here you're doing the switch from using |aCharCode| as your working string to |key|.

@@ -1028,8 +1026,8 @@
     }
   }
 
-  if (!(*aCharCode).IsEmpty()) {
-    nsAutoString charCode(*aCharCode);
+  if (!key.IsEmpty()) {
+    nsAutoString charCode(aCharCode);
     if ((mKeyMask & cShift) != 0)
       ToUpperCase(charCode);
     else

Then you correctly make that switch in the test (|!key.IsEmpty()|) but don't
make that switch in the assignment into |charCode| on the next line.

Fix is:

-    nsAutoString charCode(aCharCode);
+    nsAutoString charCode(key);

Except I've optimized |charCode| away and am using |key| straight. See patch.
Assignee: aaronl → jaggernaut
Attached patch FixSplinter Review
Comment on attachment 64277 [details] [diff] [review]
Fix

Woohoo for Peter (the other one)! r=peterv.
Attachment #64277 - Flags: review+
Checked in.
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
*** Bug 119171 has been marked as a duplicate of this bug. ***
*** Bug 119196 has been marked as a duplicate of this bug. ***
*** Bug 119213 has been marked as a duplicate of this bug. ***
*** Bug 119224 has been marked as a duplicate of this bug. ***
*** Bug 119227 has been marked as a duplicate of this bug. ***
*** Bug 119235 has been marked as a duplicate of this bug. ***
*** Bug 119248 has been marked as a duplicate of this bug. ***
re-opening - keyboard shortcuts still horked in 2002011003 builds
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
still asleep - 2002011009 builds fixed
Status: REOPENED → RESOLVED
Closed: 23 years ago23 years ago
Resolution: --- → FIXED
*** Bug 119281 has been marked as a duplicate of this bug. ***
*** Bug 119282 has been marked as a duplicate of this bug. ***
*** Bug 119269 has been marked as a duplicate of this bug. ***
*** Bug 119127 has been marked as a duplicate of this bug. ***
verified by me and daa
reopen if needed.
Status: RESOLVED → VERIFIED
*** Bug 119315 has been marked as a duplicate of this bug. ***
Just downloaded and installed win32 talkback build that's in /latest-trunk/:

mozilla-win32-talkback.zip   10-Jan-2002 13:01   9.7M 

Keyboard shortcuts still don't work.  Did the fix not get into today's win build?


The following worked for me:
/pub/mozilla/nightly/latest
mozilla-win32-installer.exe 10-Jan-2002 13:00   209k 
Mozilla.exe 349,664 bytes
The one from 2002-01-10-12-trunk/ is
more recent. It now (re)works fine for me (w2k).
*** Bug 119393 has been marked as a duplicate of this bug. ***
*** Bug 119538 has been marked as a duplicate of this bug. ***
Component: Keyboard: Navigation → User events and focus handling
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: