Permalink
Browse files

Mask: Don't interfere with the natural behavior of shift+arrows

  • Loading branch information...
gnarf committed Oct 28, 2011
1 parent dd55dbc commit b230414b6fe07cda59fcb22ca00a4e55c4b12058
Showing with 5 additions and 0 deletions.
  1. +5 −0 ui/jquery.ui.mask.js
View
@@ -179,6 +179,11 @@ $.widget( "ui.mask", {
key = event.keyCode,
position = this._caret();
+ if ( event.shiftKey || event.metaKey || event.altKey || event.ctrlKey ) {

This comment has been minimized.

Show comment Hide comment
@jzaefferer

jzaefferer Oct 28, 2011

Owner

An event.isMetaKey() (or isModifierKey?) would be really useful.

@jzaefferer

jzaefferer Oct 28, 2011

Owner

An event.isMetaKey() (or isModifierKey?) would be really useful.

+ return;
+ }
+
+

This comment has been minimized.

Show comment Hide comment
@jzaefferer

jzaefferer Oct 28, 2011

Owner

MOAR WHITESPACE

@jzaefferer

jzaefferer Oct 28, 2011

Owner

MOAR WHITESPACE

switch ( key ) {
case keyCode.ESCAPE:
this.element.val( this.lastUnsavedValue );

0 comments on commit b230414

Please sign in to comment.