Changeset 182


Ignore:
Timestamp:
05/17/13 20:49:38 (6 years ago)
Author:
nhoyt
Message:

ai-sidebar.js

  • added backOneLevel fn. as handler for keyboard shortcut

ai-sidebar.xul

  • added keyboard shortcuts for Previous View and All Rules, modified Summary view shortcut
  • removed use of ai-sidebar.view.modifierskey entity

ff-overlay.xul

  • removed key and modifiers attributes from key#ainspector-key-toggle-sidebar

view-category.xul

  • added seltype="single" to tree#ainspector-rule-category-tree

view-details.xul

  • reordered getString calls to group labels by element type
  • removed call to ainspectorSidebar.getRulesetName in COMPLIANCE section

ai-sidebar.dtd

  • removed commandkey and modifierskey entities: no longer used

ai-sidebar.properties

  • tweaked order of properties
Location:
trunk/proto-13/chrome
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/proto-13/chrome/content/ai-sidebar.js

    r180 r182  
    328328 
    329329/** 
     330 * @function backOneLevel 
     331 * 
     332 * @memberOf ainspectorSidebar 
     333 * 
     334 * @desc Navigate back one level from Rule Details or Rule Category/Guideline. 
     335 */ 
     336 
     337ainspectorSidebar.backOneLevel = function () { 
     338  if (parent.AINSPECTOR.currentView === ainspector.viewConst.DETAILS) 
     339    ainspectorSidebar.selectPreviousView(); 
     340  else 
     341    ainspectorSidebar.selectView(ainspector.viewEnum.SUMMARY); 
     342}; 
     343 
     344/** 
    330345 * @function clearCurrentView 
    331346 * 
  • trunk/proto-13/chrome/content/ai-sidebar.xul

    r181 r182  
    102102    <key id="ainspector-key-view-summary" 
    103103      command="ainspector-cmd-view-summary" 
    104       key="0" 
    105       modifiers="&ai-sidebar.view.modifierskey;"/> 
     104      keycode="VK_BACK" modifiers="shift accel"/> 
    106105    <key id="ainspector-key-view-structure" 
    107106      command="ainspector-cmd-view-structure" 
    108       key="1" 
    109       modifiers="&ai-sidebar.view.modifierskey;"/> 
     107      key="1" modifiers="shift accel"/> 
    110108    <key id="ainspector-key-view-styles" 
    111109      command="ainspector-cmd-view-styles" 
    112       key="2" 
    113       modifiers="&ai-sidebar.view.modifierskey;"/> 
     110      key="2" modifiers="shift accel"/> 
    114111    <key id="ainspector-key-view-images" 
    115112      command="ainspector-cmd-view-images" 
    116       key="3" 
    117       modifiers="&ai-sidebar.view.modifierskey;"/> 
     113      key="3" modifiers="shift accel"/> 
    118114    <key id="ainspector-key-view-tables" 
    119115      command="ainspector-cmd-view-tables" 
    120       key="4" 
    121       modifiers="&ai-sidebar.view.modifierskey;"/> 
     116      key="4" modifiers="shift accel"/> 
    122117    <key id="ainspector-key-view-links" 
    123118      command="ainspector-cmd-view-links" 
    124       key="5" 
    125       modifiers="&ai-sidebar.view.modifierskey;"/> 
     119      key="5" modifiers="shift accel"/> 
    126120    <key id="ainspector-key-view-forms" 
    127121      command="ainspector-cmd-view-forms" 
    128       key="6" 
    129       modifiers="&ai-sidebar.view.modifierskey;"/> 
     122      key="6" modifiers="shift accel"/> 
    130123    <key id="ainspector-key-view-widgets" 
    131124      command="ainspector-cmd-view-widgets" 
    132       key="7" 
    133       modifiers="&ai-sidebar.view.modifierskey;"/> 
     125      key="7" modifiers="shift accel"/> 
    134126    <key id="ainspector-key-view-media" 
    135127      command="ainspector-cmd-view-media" 
    136       key="8" 
    137       modifiers="&ai-sidebar.view.modifierskey;"/> 
     128      key="8" modifiers="shift accel"/> 
    138129    <key id="ainspector-key-view-layout" 
    139130      command="ainspector-cmd-view-layout" 
    140       key="9" 
    141       modifiers="&ai-sidebar.view.modifierskey;"/> 
    142     <key id="ainspector-key-view-previous" 
    143       oncommand="ainspectorSidebar.selectPreviousView()" 
    144       key="K" 
    145       modifiers="&ai-sidebar.view.modifierskey;"/> 
     131      key="9" modifiers="shift accel"/> 
     132    <key id="ainspector-key-view-all-rules" 
     133      command="ainspector-cmd-view-all-rules" 
     134      key="0" modifiers="shift accel"/> 
     135    <!-- navigation keys --> 
     136    <key id="ainspector-key-back-one-level" 
     137      oncommand="ainspectorSidebar.backOneLevel()" 
     138      keycode="VK_BACK" modifiers="accel"/> 
    146139  </keyset> 
    147140 
  • trunk/proto-13/chrome/content/ff-overlay.xul

    r176 r182  
    1111  <keyset id="mainKeyset"> 
    1212    <key id="ainspector-key-toggle-sidebar" 
    13       command="ainspector-view-sidebar" 
    14       key="&ai-sidebar.toggle.commandkey;" 
    15       modifiers="&ai-sidebar.toggle.modifierskey;"/> 
     13      command="ainspector-view-sidebar"/> 
    1614  </keyset> 
    1715 
  • trunk/proto-13/chrome/content/view-category.xul

    r179 r182  
    3838 
    3939    <tree id="ainspector-rule-category-tree" 
    40       rows="12" 
     40      rows="12" seltype="single" 
    4141      persist="sortDirection sortResource" 
    4242      sortDirection="descending" 
  • trunk/proto-13/chrome/content/view-details.js

    r181 r182  
    108108  return { 
    109109    SUMMARY:         nls.getString("info.summary"), 
     110    RESULT:          nls.getString("info.result"), 
     111 
    110112    DEFINITION:      nls.getString("info.definition"), 
    111113    COMPLIANCE:      nls.getString("info.compliance"), 
    112     WCAG_LEVEL:      nls.getString("info.wcag-level"), 
     114    PURPOSE:         nls.getString("info.purpose"), 
    113115    TARGET_ELEMENTS: nls.getString("info.target-elements"), 
    114     RESULT:          nls.getString("info.result"), 
    115     PURPOSE:         nls.getString("info.purpose"), 
    116116    TECHNIQUES:      nls.getString("info.techniques"), 
    117117    WCAG_SC:         nls.getString("info.wcag-sc"), 
    118118    INFO_LINKS:      nls.getString("info.info-links"), 
     119 
     120    RECOMMENDED:     nls.getString("info.recommended"), 
    119121    REQUIRED:        nls.getString("info.required"), 
    120     RECOMMENDED:     nls.getString("info.recommended"), 
     122    WCAG_LEVEL:      nls.getString("info.wcag-level"), 
    121123 
    122124    ARIA_STRICT:     nls.getString("option.ruleset.aria-strict"), 
     
    198200  addHTML(vbox, h2); 
    199201 
    200   p = getHTML("p", labels.WCAG_LEVEL + ruleResult.getWCAG20Level() + "; " + 
    201               ainspectorSidebar.getRulesetName() + ": " + ruleType, pStyle); 
     202  p = getHTML("p", labels.WCAG_LEVEL + ruleResult.getWCAG20Level() + "; " + ruleType, pStyle); 
    202203  addHTML(vbox, p, 2); 
    203204 
  • trunk/proto-13/chrome/locale/en-US/ai-sidebar.dtd

    r169 r182  
    11<!ENTITY ainspector.title "AInspector"> 
    22<!ENTITY ai-sidebar.title "&ainspector.title; Sidebar"> 
    3  
    4 <!ENTITY ai-sidebar.toggle.commandkey ""> 
    5 <!ENTITY ai-sidebar.toggle.modifierskey "shift accel"> 
    6 <!ENTITY ai-sidebar.view.modifierskey "shift accel"> 
    73 
    84<!ENTITY ai-button.label.back              "Back"> 
  • trunk/proto-13/chrome/locale/en-US/ai-sidebar.properties

    r181 r182  
    4040info.wcag-sc         = WCAG SUCCESS CRITERIA 
    4141 
     42info.noSelection     = nothing selected 
    4243info.recommended     = Recommended 
    4344info.required        = Required 
    44 info.noSelection     = nothing selected 
    4545info.wcag-level      = WCAG 2.0 Level\u0020 
    4646 
Note: See TracChangeset for help on using the changeset viewer.