# HG changeset patch # User Guido Berhoerster # Date 1412453816 -7200 # Node ID b19db583b5f8138e001becb227c24d7a2c93a651 # Parent 2a4922945b8d597dd8426f23c9c89295ebd6b597 Display keyboard shortcuts as an overly when pressing Alt diff -r 2a4922945b8d -r b19db583b5f8 booket.css --- a/booket.css Thu Oct 02 00:19:34 2014 +0200 +++ b/booket.css Sat Oct 04 22:16:56 2014 +0200 @@ -117,6 +117,25 @@ height: 2em; } +#keyboard-shortcuts { + display: none; + padding: .5em; + font-size: .75em; + background: rgba(251, 251, 249, .75); + border: 1px solid #d3d7cf; + border-radius: .5em; + box-shadow: 2px 2px 20px 4px rgba(0, 0, 0, .25); +} + +#keyboard-shortcuts[data-overlay-visible] { + display: block; + position: fixed; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); + z-index: 10; +} + #actions { margin: 1em 0 0 0; } @@ -164,8 +183,7 @@ padding: 1px 0; } -#bookmarklet, -#keyboard-shortcuts { +#bookmarklet { float: right; border: 1px solid #d3d7cf; border-radius: .5em; @@ -198,11 +216,6 @@ margin: 0; } -#keyboard-shortcuts { - background-color: #fbfbf9; - clear: right; -} - #keyboard-shortcuts dl { margin: 1em 0 0 0; } diff -r 2a4922945b8d -r b19db583b5f8 booket.html --- a/booket.html Thu Oct 02 00:19:34 2014 +0200 +++ b/booket.html Sat Oct 04 22:16:56 2014 +0200 @@ -38,6 +38,28 @@ +
+

Keyboard Shortcuts

+
+
Prefix+i
+
Select bookmark file to load
+
Prefix+l
+
Load selected bookmark file
+
Prefix+s
+
Save bookmark file
+
Prefix+a
+
Focus bookmark editor
+
Prefix+e
+
Select bookmark file to import
+
Prefix+m
+
Import selected file
+
Prefix+x
+
Export selected file
+
Prefix+f
+
Focus search field
+
+
+