Skip to content

Commit

Permalink
Check for AltGr if replacement equals to input
Browse files Browse the repository at this point in the history
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. This happens in
a layout for the Udmurt language.
  • Loading branch information
amire80 committed Mar 17, 2013
1 parent d0bd65d commit 49d02b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jquery.ime.js
Expand Up @@ -134,7 +134,7 @@
}

// it is a noop
if ( replacement === input ) {
if ( !altGr && replacement === input ) {
return true;
}

Expand Down

0 comments on commit 49d02b6

Please sign in to comment.