issue93, photo-index and reset-all via access key
authorAndreas Unterkircher <unki@netshadow.at>
Sat, 12 Jan 2008 09:57:24 +0000 (10:57 +0100)
committerAndreas Unterkircher <unki@netshadow.at>
Sat, 12 Jan 2008 09:57:24 +0000 (10:57 +0100)
Signed-off-by: Andreas Unterkircher <unki@netshadow.at>
phpfspot.js
themes/default/templates/index.tpl

index 4bd321f4ebc782037ec434fc2bf6e4ad1c662182..abf9c43fe6da3e5b94972b8206fa04aa0549d823 100644 (file)
@@ -442,6 +442,14 @@ function keyDown(e) {
          }
          return;
       }
          }
          return;
       }
+      if(key == 73 && evt.altKey && evt.ctrlKey) /* ctrl+alt+i */ {
+         showPhotoIndex();
+         return;
+      }
+      if(key == 82 && evt.altKey && evt.ctrlKey) /* ctrl+alt+r */ {
+         resetAll();
+         return;
+      }
    }
 }
 
    }
 }
 
index 10459aa72dc3f39389408687c7e96d6b95d9bb77..be8ba6c55f7304842109b55ba96f2895ffc4775a 100644 (file)
@@ -5,10 +5,10 @@
 
   <div class="menu">
    <div class="icons">
 
   <div class="menu">
    <div class="icons">
-    <a href="javascript:showPhotoIndex();" onclick="click(this);" title="Show Photo Index">
+    <a href="javascript:showPhotoIndex();" onclick="click(this);" title="Show Photo Index (CTRL+ALT+i)">
      <img src="resources/photo_index.png" alt="photo index" />
     </a>
      <img src="resources/photo_index.png" alt="photo index" />
     </a>
-    <a href="javascript:resetAll();" onclick="click(this);" title="Reset selected-tags and search results">
+    <a href="javascript:resetAll();" onclick="click(this);" title="Reset selected-tags and search results (CTRL+ALT+r)">
      <img src="resources/reload.png" alt="reset tags" />
     </a>
     <a href="javascript:showCredits();" onclick="click(this);" title="Show's a little credit page">
      <img src="resources/reload.png" alt="reset tags" />
     </a>
     <a href="javascript:showCredits();" onclick="click(this);" title="Show's a little credit page">