From: Daniel Carl <danielcarl@gmx.de> Date: Sun, 23 Aug 2015 07:24:38 +0000 (+0200) Subject: Added manual test for contenteditable element (#237). X-Git-Url: https://git.owens.tech/assets/dummy.html/assets/dummy.html/git?a=commitdiff_plain;h=2b5825841e5a688a665bddc21b452e5e1257ac6d;p=vimb.git Added manual test for contenteditable element (#237). --- diff --git a/src/hints.c b/src/hints.c index 77d0d03..91bb869 100644 --- a/src/hints.c +++ b/src/hints.c @@ -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. */ diff --git a/tests/manual/112-editable-focus.html b/tests/manual/112-editable-focus.html index 509f9f4..3accc37 100644 --- a/tests/manual/112-editable-focus.html +++ b/tests/manual/112-editable-focus.html @@ -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>