Enable enter key usage for tour again

This commit is contained in:
peteruithoven 2014-01-16 12:48:57 +01:00
parent a01599fb54
commit 942d9d8bbf
1 changed files with 3 additions and 1 deletions

View File

@ -48,7 +48,9 @@ function initKeyboard() {
default: console.log("Key: '" + ch + "' (" + event.which + ")");
}
event.preventDefault(); //prevents the character to end up in a focussed textfield
if(event.which != 13) { // don't prevent enter usage, it's used in tour
event.preventDefault(); //prevents the character to end up in a focussed textfield
}
})
}