Closed Bug 565048 Opened 14 years ago Closed 14 years ago

move accel+up/down/left/right/home/end keypress handler to the tab container binding

Categories

(Firefox :: Tabbed Browser, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 3.7a5

People

(Reporter: dao, Assigned: dao)

Details

Attachments

(1 file)

Attached patch patchSplinter Review
      No description provided.
Attachment #444669 - Flags: review?(gavin.sharp)
Attachment #444669 - Flags: review?(gavin.sharp) → review+
Comment on attachment 444669 [details] [diff] [review]
patch

>diff --git a/browser/base/content/tabbrowser.xml b/browser/base/content/tabbrowser.xml

>+      <handler event="keypress"><![CDATA[
>+        if (event.altKey || event.shiftKey ||
>+#ifdef XP_MACOSX
>+            !event.metaKey)
>+#else
>+            !event.ctrlKey)
>+#endif

Not that it matters much, but you need || event.metaKey in the non-XP_MACOSX case to maintain existing behavior. (It appears to be possible for metaKey to be set on beos/qt and apparently also for gtk, though I'm not sure under exactly what circumstances - gtk docs suggest it is dependent on X server config.)

We should indeed have tests for this, as Shawn pointed out in the other bug.
http://hg.mozilla.org/mozilla-central/rev/f0822abe3433

added || event.metaKey as suggested
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 3.7a5
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: