Skip to content
This repository was archived by the owner on Nov 28, 2018. It is now read-only.

Commit 3c5f09b

Browse files
committed
fix #50 on haskell.org
jquery creates a hidden textarea, which enables Android's autocorrection, spellchecker, and so on. Those only affect letters, which is why only the letters refused to appear. I added html attributes on the textarea to disable those features, and now the letters can be typed just fine.
1 parent c8812e4 commit 3c5f09b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jquery.console.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@
109109
var inner = $('<div class="jquery-console-inner"></div>');
110110
// erjiang: changed this from a text input to a textarea so we
111111
// can get pasted newlines
112-
var typer = $('<textarea class="jquery-console-typer"></textarea>');
112+
var typer = $('<textarea autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" class="jquery-console-typer"></textarea>');
113113
// Prompt
114114
var promptBox;
115115
var prompt;

0 commit comments

Comments
 (0)