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:
Jon Atkins 2013-04-10 04:07:20 +01:00
parent b97b2fc418
commit 0d51e045a0

View File

@ -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();