Commits

Anonymous committed e67eaa1

Add `accesskey`s to some form controls for common non-destructive operations. Closes #1752.

  • Participants
  • Parent commits e3eda3d
  • Branches trunk

Comments (0)

Files changed (6)

templates/header.cs

 <form id="search" action="<?cs var:trac.href.search ?>" method="get">
  <?cs if:trac.acl.SEARCH_VIEW ?><div>
   <label for="proj-search">Search:</label>
-  <input type="text" id="proj-search" name="q" size="10" value="" />
+  <input type="text" id="proj-search" name="q" size="10" accesskey="f" value="" />
   <input type="submit" value="Search" />
   <input type="hidden" name="wiki" value="on" />
   <input type="hidden" name="changeset" value="on" />

templates/milestone.cs

       if:milestone.id_param ?>
        <input type="hidden" name="id" value="<?cs var:milestone.name ?>" /><?cs
       /if ?>
-      <input type="submit" value="Edit milestone info" />
+      <input type="submit" value="Edit milestone info" accesskey="e" />
      </div></form><?cs
     /if ?><?cs
     if:trac.acl.MILESTONE_DELETE ?>

templates/newticket.cs

    var:chrome.href ?>/common/js/wikitoolbar.js"></script>
 
  <div class="buttons">
-  <input type="submit" name="preview" value="Preview" />&nbsp;
+  <input type="submit" name="preview" value="Preview" accesskey="r" />&nbsp;
   <input type="submit" value="Submit ticket" />
  </div>
 </form>

templates/report.cs

      <div class="buttons"><?cs
       if:report.can_modify ?><form action="" method="get"><div>
        <input type="hidden" name="action" value="edit" />
-       <input type="submit" value="Edit report" />
+       <input type="submit" value="Edit report" accesskey="e" />
       </div></form><?cs /if ?><?cs
       if:report.can_create ?><form action="" method="get"><div>
        <input type="hidden" name="action" value="copy" />

templates/ticket.cs

 
  <div class="buttons">
   <input type="hidden" name="ts" value="<?cs var:ticket.ts ?>" />
-  <input type="submit" name="preview" value="Preview" />&nbsp;
+  <input type="submit" name="preview" value="Preview" accesskey="r" />&nbsp;
   <input type="submit" value="Submit changes" />
  </div>
 </form>

templates/wiki.cs

     </fieldset>
     <div class="buttons"><?cs
      if wiki.action == "collision" ?>
-     <input type="submit" name="preview" value="Preview" disabled="" />&nbsp;
-     <input type="submit" name="save" value="Submit changes" disabled="" />&nbsp;
+      <input type="submit" name="preview" value="Preview" disabled="disabled" />&nbsp;
+      <input type="submit" name="save" value="Submit changes" disabled="disabled" />&nbsp;
      <?cs else ?>
-     <input type="submit" name="preview" value="Preview" />&nbsp;
-     <input type="submit" name="save" value="Submit changes" />&nbsp;
+      <input type="submit" name="preview" value="Preview" accesskey="r" />&nbsp;
+      <input type="submit" name="save" value="Submit changes" />&nbsp;
      <?cs /if ?>
      <input type="submit" name="cancel" value="Cancel" />
     </div>
     if:trac.acl.WIKI_MODIFY ?>
      <form method="get" action="<?cs var:wiki.current_href ?>"><div>
       <input type="hidden" name="action" value="edit" />
-      <input type="submit" value="<?cs if:wiki.exists ?>Edit<?cs else ?>Create<?cs /if ?> this page" />
+      <input type="submit" value="<?cs if:wiki.exists ?>Edit<?cs
+        else ?>Create<?cs /if ?> this page" accesskey="e" />
      </div></form><?cs
      if:wiki.exists ?>
       <form method="get" action="<?cs var:wiki.attach_href ?>"><div>