init
This commit is contained in:
9
include/ECM/stopEnter.js
Normal file
9
include/ECM/stopEnter.js
Normal file
@@ -0,0 +1,9 @@
|
||||
//MZ 2013-02-23
|
||||
//disable ENTER on EditView forms
|
||||
function stopRKey(evt) {
|
||||
var evt = (evt) ? evt : ((event) ? event : null);
|
||||
var node = (evt.target) ? evt.target : ((evt.srcElement) ? evt.srcElement : null);
|
||||
if ((evt.keyCode == 13) && (node.type=="text")) {return false;}
|
||||
}
|
||||
console.log('chce');
|
||||
document.onkeypress = stopRKey;
|
||||
Reference in New Issue
Block a user