Added manual test for contenteditable element (#237).
authorDaniel Carl <danielcarl@gmx.de>
Sun, 23 Aug 2015 07:24:38 +0000 (09:24 +0200)
committerDaniel Carl <danielcarl@gmx.de>
Sun, 23 Aug 2015 07:34:27 +0000 (09:34 +0200)
src/hints.c
tests/manual/112-editable-focus.html

index 77d0d03..91bb869 100644 (file)
@@ -297,7 +297,7 @@ static gboolean call_hints_function(const char *func, int count, JSValueRef para
     /* following return values mark fired hints */
     if (!strncmp(value, "DONE:", 5)) {
         fire_timeout(false);
-        /* Change to normal mode only if we are crrently in command mode and
+        /* Change to normal mode only if we are currently in command mode and
          * we are not in g-mode hinting. This is required to not switch to
          * normal mode when the hinting triggered a click that set focus on
          * editable element that lead vimb to switch to input mode. */
index 509f9f4..3accc37 100644 (file)
@@ -1,6 +1,6 @@
 <html>
 <head>
-<title>iFrame URI change by HSTS (#146)</title>
+<title>Input mode Switching (#112 #237)</title>
 <script type="text/javascript">
 //<![CDATA[
 function setFocus() {
@@ -26,6 +26,14 @@ function setFocus() {
             <input type="button" value="Focus Textarea" onclick="document.getElementById('text').focus();"/>
         </div>
     </form>
+    <p>
+    Also the following element using <code>contenteditable="true"</code>
+    should switch vimb into input mode on click.
+    </p>
+    <div contenteditable="true" style="width:50%;height:3em;border:1px solid #000">
+    Clicking this element using contenteditable="true" should
+    switch vimb into input mode too.
+    </div>
 </body>
 </html>