]> git.wh0rd.org Git - tt-rss.git/commitdiff
actions dropbox: add action to show hotkey help
authorAndrew Dolgov <fox@bah.spb.su>
Thu, 15 May 2008 16:27:11 +0000 (17:27 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Thu, 15 May 2008 16:27:11 +0000 (17:27 +0100)
tt-rss.css
tt-rss.js
tt-rss.php

index a5ab1513515247d2c89c6d95dfb25d2d511073d1..73db3b4a094666111ebd56926fd0162a4adde928 100644 (file)
@@ -1796,14 +1796,11 @@ div#hotkey_help_overlay {
        right : 15%;
        top : 15%;
        z-index : 999;
-/*     background-color : #f8fcf5;
-       border-width : 1px 1px 1px 1px;
-       border-style : solid;
-       border-color : #99d67a; */
        padding : 1em;
        background : url("images/shadow_dark.png");
        color : white;
        border : 1px solid black;
+       font-size : 12pt;
 }
 
 div#hotkey_help_overlay h1 {
index 0e4c153c0cf295b7fb2278136b92eab5526da6b4..a8a54fb4c72e4b05f494a2ac063ad6da846f3ef8 100644 (file)
--- a/tt-rss.js
+++ b/tt-rss.js
@@ -529,6 +529,10 @@ function quickMenuGo(opid) {
                        rescoreCurrentFeed();
                }
 
+               if (opid == "qmcHKhelp") {
+                       Element.show("hotkey_help_overlay");
+               }
+
        } catch (e) {
                exception_error("quickMenuGo", e);
        }
index b5fac9f5464d2b08f57c178f9c5fa925fa42cddd..1f0e6d4abc016e10548daaa4206dc6c82844c52b 100644 (file)
@@ -82,7 +82,7 @@
        </div>
 </div> 
 
-<div id="hotkey_help_overlay" style="display : none">
+<div id="hotkey_help_overlay" style="display : none" onclick="Element.hide(this)">
        <?php include "help/3.php" ?>
 </div>
 
@@ -158,6 +158,7 @@ window.onload = init;
                                        <option disabled>--------</option>
                                        <option style="color : #5050aa" disabled><?php echo __('Other actions:') ?></option>                            
                                        <option value="qmcAddFilter"><?php echo __('&nbsp;&nbsp;Create filter') ?></option>
+                                       <option value="qmcHKhelp"><?php echo __('&nbsp;&nbsp;Keyboard shortcuts') ?></option>
                        </select>
                </div>