Skip to content

Commit

Permalink
Merge pull request #151 from amire80/altGr_not_noop
Browse files Browse the repository at this point in the history
Check for AltGr if replacement equals to input
  • Loading branch information
Nikerabbit committed Apr 23, 2013
2 parents ccf4450 + b7febf9 commit c903a01
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/jquery.ime.js
Expand Up @@ -133,8 +133,12 @@
- this.inputmethod.contextLength );
}

// it is a noop
if ( replacement === input ) {
// 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 c903a01

Please sign in to comment.