apsoni / shellinabox

Automatically exported from code.google.com/p/shellinabox
Other
0 stars 0 forks source link

autocorrect/autocapitalize can cause problems on mobile devices (with patch!) #172

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. open a shellinabox console on a mobile device, eg androd
2. start typing into the console
3. watch capitalization/autocorrect go nuts

Here's a diff of a possible fix:

diff --git a/shellinabox/vt100.js b/shellinabox/vt100.js
index 8a5b2f8..7e9952f 100644
--- a/shellinabox/vt100.js
+++ b/shellinabox/vt100.js
@@ -887,7 +887,7 @@ VT100.prototype.initializeElements = function(container) {
                        '<div class="hidden">' +                      
                          '<div id="usercss"></div>' +               
                          '<pre><div><span id="space"></span></div></pre>' + 
-                         '<input type="textfield" id="input" />' +         
+                         '<input type="textfield" id="input" autocorrect="off" 
autocapitalize="off" />' + 
                          '<input type="textfield" id="cliphelper" />' + 
                          (typeof suppressAllAudio != 'undefined' &&    
                           suppressAllAudio ? "" :    

Original issue reported on code.google.com by harry.pe...@gmail.com on 4 Apr 2012 at 11:48

GoogleCodeExporter commented 8 years ago
Patch applied for 2.11.

Original comment by beewoo...@gmail.com on 5 Apr 2012 at 6:51

GoogleCodeExporter commented 8 years ago
Issue 155 has been merged into this issue.

Original comment by beewoo...@gmail.com on 23 Apr 2012 at 3:56