Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

usage section with shortcut keys, styling for it

  • Loading branch information...
commit d3afb210ebdd699196168da3a267ca30cb155d3f 1 parent 4b052de
@mustardamus mustardamus authored
Showing with 49 additions and 8 deletions.
  1. +21 −1 app/assets/stylesheets/main.css.sass
  2. +28 −7 app/views/index.haml
View
22 app/assets/stylesheets/main.css.sass
@@ -173,4 +173,24 @@ body
#git
a
- background: url('/assets/download_git.png') top center no-repeat
+ background: url('/assets/download_git.png') top center no-repeat
+
+#keys
+ padding: 0 0 15px 30px
+
+ li
+ position: relative
+ padding: 3px 0 0 50px
+ font-size: 1.2em
+ margin-bottom: 8px
+
+ span
+ position: absolute
+ top: 0
+ left: 0
+ background: #eee
+ border-bottom: 2px solid #aaa
+ border-top: 1px solid #ddd
+ border-radius: 3px
+ padding: 2px 4px
+ font-family: Monaco, "Bitstream Vera Sans Mono", "Lucida Console", Terminal, monospace
View
35 app/views/index.haml
@@ -85,7 +85,7 @@
This
%a{:href => 'https://github.com/jqapi/jqapi'} Open-Source
project is still under development. If you are having trouble with it
- you can still visit the
+ you can still use the
%a{:href => 'http://old.jqapi.com'} old jQAPI
\.
@@ -136,12 +136,33 @@
%h2.title Usage
.row.clearfix
- .third
- %p Keyboard
- .third
- %p Navigation
- .third
- %p etc.
+ .left
+ %p
+ Keyboard shortcuts are available when the search box has focus. ESC key is global.
+
+ %ul#keys
+ %li
+ %span ESC
+ Set search box focus / Clear search box
+ %li
+ %span UP
+ Previous category / Previous entry
+ %li
+ %span DOWN
+ Next category / Next entry
+ %li
+ %span ENTER
+ Open category / Load selected entry
+
+ .right
+ %p
+ Please note that the keyboard navigation is
+ still buggy when in category mode.
+ But you should have no problem
+ to search for entries and navigate to them
+ in a fast manner.
+ %p
+ I am working on it.
%li.entry
%ul.signatures
Please sign in to comment.
Something went wrong with that request. Please try again.