public/javascripts/inputex/build/inputex.js
function(e) {
	   inputEx.PasswordField.superclass.onKeyPress.call(this,e);
	   
	   if(this.options.capsLockWarning) {
         var ev = e ? e : window.event;
         if (!ev) {
            return;
         }
         var targ = ev.target ? ev.target : ev.srcElement;
      
         // get key pressed
         var which = -1;
         if (ev.which) {
            which = ev.which;
         } else if (ev.keyCode) {
            which = ev.keyCode;
         }
         // get shift status
         var shift_status = false;
         if (ev.shiftKey) {
            shift_status = ev.shiftKey;
         } else if (ev.modifiers) {
            shift_status = !!(ev.modifiers & 4);
         }
         var displayWarning = ((which >= 65 && which <=  90) && !shift_status) ||
                              ((which >= 97 && which <= 122) && shift_status);
         this.setCapsLockWarning(displayWarning);
      }
      
	}
function(e) {
	   inputEx.PasswordField.superclass.onKeyPress.call(this,e);
	   
	   if(this.options.capsLockWarning) {
         var ev = e ? e : window.event;
         if (!ev) {
            return;
         }
         var targ = ev.target ? ev.target : ev.srcElement;
      
         // get key pressed
         var which = -1;
         if (ev.which) {
            which = ev.which;
         } else if (ev.keyCode) {
            which = ev.keyCode;
         }
         // get shift status
         var shift_status = false;
         if (ev.shiftKey) {
            shift_status = ev.shiftKey;
         } else if (ev.modifiers) {
            shift_status = !!(ev.modifiers & 4);
         }
         var displayWarning = ((which >= 65 && which <=  90) && !shift_status) ||
                              ((which >= 97 && which <= 122) && shift_status);
         this.setCapsLockWarning(displayWarning);
      }
      
	}
function ( e ) { inputEx . PasswordField . superclass . onKeyPress . call ( this , e ) ; if ( this . options . capsLockWarning ) { var ev = e ? e : window . event ; if ( ! ev ) { return ; } var targ = ev . target ? ev . target : ev . srcElement ; // get key pressed var which = - 1 ; if ( ev . which ) { which = ev . which ; } else if ( ev . keyCode ) { which = ev . keyCode ; } // get shift status var shift_status = false ; if ( ev . shiftKey ) { shift_status = ev . shiftKey ; } else if ( ev . modifiers ) { shift_status = ! ! ( ev . modifiers & 4 ) ; } var displayWarning = ( ( which >= 65 && which <= 90 ) && ! shift_status ) || ( ( which >= 97 && which <= 122 ) && shift_status ) ; this . setCapsLockWarning ( displayWarning ) ; } }
callback to display the capsLockWarning
callback to display the capsLockWarning