Fix bug 427403 - CTRL+Cursor Down for selecting multiple items from a list of Mail messages or Tasks loses focus (need new keyboard shortcut for Lightning's Today tab). r=philipp,ui-r=andreasn
authorMatthew Mecca <matthew.mecca@gmail.com>
Mon, 13 Dec 2010 16:33:47 +0100
changeset 6826 873e68c06d96764fcbc8b1ffc90f2dc62c1a82f5
parent 6825 1afa1ca536e6f71d431d3cd8fdec4a6251de6b9a
child 6827 9d7a6096be8008ac4aeae6182b7d431222bff7ae
push idunknown
push userunknown
push dateunknown
reviewersphilipp, andreasn
bugs427403
Fix bug 427403 - CTRL+Cursor Down for selecting multiple items from a list of Mail messages or Tasks loses focus (need new keyboard shortcut for Lightning's Today tab). r=philipp,ui-r=andreasn
calendar/base/content/calendar-common-sets.xul
calendar/lightning/content/messenger-overlay-sidebar.xul
--- a/calendar/base/content/calendar-common-sets.xul
+++ b/calendar/base/content/calendar-common-sets.xul
@@ -154,17 +154,17 @@
          observes="calendar_week-view_command"
 #expand  modifiers="__CAL_VIEW_MODIFIERS__"/>
     <key id="calendar-multiweek-view-key" key="3"
          observes="calendar_multiweek-view_command"
 #expand  modifiers="__CAL_VIEW_MODIFIERS__"/>
     <key id="calendar-month-view-key" key="4"
          observes="calendar_month-view_command"
 #expand  modifiers="__CAL_VIEW_MODIFIERS__"/>
-    <key id="calendar-go-to-today-key" keycode="VK_DOWN" observes="calendar_go_to_today_command" modifiers="accel"/>
+    <key id="calendar-go-to-today-key" keycode="VK_END" observes="calendar_go_to_today_command" modifiers="alt"/>
     <key id="calendar-delete-item-key" keycode="VK_DELETE" observes="calendar_delete_event_command"/>
     <key id="calendar-delete-todo-key" keycode="VK_DELETE" observes="calendar_delete_todo_command"/>
   </keyset>
 
   <popupset id="calendar-popupset">
     <!-- Tooltips -->
     <tooltip id="eventTreeTooltip"
              onpopupshowing="return showToolTip(this, unifinderTreeView.getItemFromEvent(event))"
--- a/calendar/lightning/content/messenger-overlay-sidebar.xul
+++ b/calendar/lightning/content/messenger-overlay-sidebar.xul
@@ -459,16 +459,17 @@
                oncommand="document.getElementById('tabmail').openTab('calendar', { title: document.getElementById('calendar-tab-button').getAttribute('tooltiptext') })"/>
       <command id="switch2task"
                oncommand="document.getElementById('tabmail').openTab('tasks', { title: document.getElementById('task-tab-button').getAttribute('tooltiptext') })"/>
       <command id="new_calendar_tab"
                oncommand="document.getElementById('tabmail').openTab('calendar', { title: document.getElementById('calendar-tab-button').getAttribute('tooltiptext') })"/>
       <command id="new_task_tab"
                oncommand="document.getElementById('tabmail').openTab('tasks', { title: document.getElementById('task-tab-button').getAttribute('tooltiptext') })"/>
       <command id="calendar_go_to_today_command"
+               observes="calendar_mode_calendar"
                oncommand="document.getElementById('tabmail').openTab('calendar', { title: document.getElementById('calendar-tab-button').getAttribute('tooltiptext') }); goToDate(now())"/>
     </commandset>
 
     <keyset id="calendar-keys">
       <key id="openLightningKey"
            key="&lightning.keys.event.showCalendar.key;"
            modifiers="accel, shift"
            observes="new_calendar_tab"/>