disable input "keydown" on smartphones - it's redundant there (no tab key), breaks input editing, and has some impact on performance
fix #138
This commit is contained in:
parent
b97b2fc418
commit
0d51e045a0
@ -606,6 +606,7 @@ window.chat.setupTime = function() {
|
||||
|
||||
|
||||
window.chat.setupPosting = function() {
|
||||
if (!isSmartphone()) {
|
||||
$('#chatinput input').keydown(function(event) {
|
||||
try {
|
||||
var kc = (event.keyCode ? event.keyCode : event.which);
|
||||
@ -621,6 +622,7 @@ window.chat.setupPosting = function() {
|
||||
debug.printStackTrace();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
$('#chatinput').submit(function(event) {
|
||||
event.preventDefault();
|
||||
|
Loading…
x
Reference in New Issue
Block a user