Skip to content

Commit

Permalink
Add doc about altGr in the code
Browse files Browse the repository at this point in the history
  • Loading branch information
amire80 committed Apr 23, 2013
1 parent 49d02b6 commit b7febf9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/jquery.ime.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,11 @@
- this.inputmethod.contextLength );
}

// it is a noop
// If replacement equals to input, no replacement is made, because
// there's apparently nothing to do. However, there may be something
// to do if AltGr was pressed. For example, if a layout is built in
// a way that allows typing the original character instead of
// the replacement by pressing it with AltGr.
if ( !altGr && replacement === input ) {
return true;
}
Expand Down

0 comments on commit b7febf9

Please sign in to comment.