Changeset 19


Ignore:
Timestamp:
09/21/12 01:40:51 (6 years ago)
Author:
nhoyt
Message:

Added ainspector.toggleToolbar fn. and corresponding keyboard shortcut.

Location:
trunk/proto-03/chrome
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/proto-03/chrome/content/ff-overlay.js

    r17 r19  
    3737  .QueryInterface(Components.interfaces.nsIInterfaceRequestor) 
    3838  .getInterface(Components.interfaces.nsIDOMWindow); 
     39 
     40ainspector.toggleToolbar = function () { 
     41  var toolbar = window.document.getElementById('ai-toolbar'); 
     42  if (toolbar) toolbar.collapsed = !(toolbar.collapsed); 
     43}; 
    3944 
    4045ainspector.isSidebarVisible = function () { 
  • trunk/proto-03/chrome/content/ff-overlay.xul

    r18 r19  
    1616  <script src="ff-overlay.js"/> 
    1717 
     18  <menupopup id="viewToolbarsMenu"> 
     19    <menuitem key="ai-toolbar-toggle-key"/> 
     20  </menupopup> 
     21 
    1822  <menupopup id="viewSidebarMenu"> 
    19     <menuitem key="key-open-ai-sidebar" observes="view-ai-sidebar"/> 
     23    <menuitem key="ai-sidebar-toggle-key" observes="view-ai-sidebar"/> 
    2024  </menupopup> 
    2125 
    2226  <keyset id="mainKeyset"> 
    23     <key id="key-open-ai-sidebar" command="view-ai-sidebar" 
    24          key="&open-ai-sidebar.commandkey;" 
    25          modifiers="&open-ai-sidebar.modifierskey;"/> 
     27    <key id="ai-sidebar-toggle-key" command="view-ai-sidebar" 
     28      key="&ai-sidebar.toggle.commandkey;" 
     29      modifiers="&ai-sidebar.toggle.modifierskey;"/> 
     30    <key id="ai-toolbar-toggle-key" oncommand="ainspector.toggleToolbar()" 
     31      key="&ai-toolbar.toggle.commandkey;" 
     32      modifiers="&ai-toolbar.toggle.modifierskey;"/> 
    2633  </keyset> 
    2734 
  • trunk/proto-03/chrome/locale/en-US/ai-sidebar.dtd

    r18 r19  
    33<!ENTITY ai-sidebar.title "&ainspector.title; Sidebar"> 
    44 
    5 <!ENTITY open-ai-sidebar.commandkey "L"> 
    6 <!ENTITY open-ai-sidebar.modifierskey "shift accel"> 
     5<!ENTITY ai-toolbar.toggle.commandkey "K"> 
     6<!ENTITY ai-toolbar.toggle.modifierskey "shift accel"> 
     7 
     8<!ENTITY ai-sidebar.toggle.commandkey "L"> 
     9<!ENTITY ai-sidebar.toggle.modifierskey "shift accel"> 
    710 
    811<!-- view labels --> 
Note: See TracChangeset for help on using the changeset viewer.