},
// private
+ safariLastKey : false,
+
+ SafariOnKeyPress : function(event){
+ this.safariLastChar = event.getCharCode();
+ },
+
SafariOnKeyDown : function(event){
var isSelectAll = false;
if(this.el.dom.selectionEnd > 0){
return;
};
if(isSelectAll){ // backspace and delete key
-
event.preventDefault();
- this.setValue(String.fromCharCode(event.getCharCode()));
+ this.setValue(String.fromCharCode(this.safariLastChar));
};
-
}
});
\ No newline at end of file