Skip to content

Commit

Permalink
h42h2
Browse files Browse the repository at this point in the history
  • Loading branch information
tzury committed Sep 16, 2008
1 parent 70966c9 commit bb287a4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ $('div.foo').unbind('keydown', 'Ctrl+a', fn);
</pre>
## [Live Demo](http://jshotkeys.googlepages.com/test-static-01.html)

#### Types
## Types
Supported types are `'keydown'`, `'keyup'` and `'keypress'`

#### Options
## Options
The options are `'combi'` i.e. the key combination, and `'disableInInput'` which allow your code not to be executed when the cursor is located inside an input ( `$(elem).is('input') || $(elem).is('textarea')` ).

As you can see, the key combination can be passed as string or as an object. You may pass an object in case you wish to override the default option for `disableInInput` which is set to `false`:
Expand All @@ -35,7 +35,7 @@ If you want to use more than one modifiers (e.g. alt+ctrl+z) you should define t

Modifiers are case insensitive, i.e. 'Ctrl+a' 'ctrl+a'.

#### Handler
## Handler
In previous versions there was an option propagate which is removed now and implemented at the user code level.

When using jQuery, if an event handler returns false, jQuery will call `stopPropagation()` and `preventDefault()`
Expand Down

0 comments on commit bb287a4

Please sign in to comment.