diff options
author | Robert Timm <mail@rtti.de> | 2017-02-26 00:29:12 +0100 |
---|---|---|
committer | Robert Timm <mail@rtti.de> | 2017-02-26 23:42:36 +0100 |
commit | 495727fb19cc83289fa4ba90c91590d28ea7e740 (patch) | |
tree | bd1ca593d609003ef9576bcd4d085154f0ad7b71 /src/input.c | |
parent | bfe8ad4672d81fe2c247e4210b5448a70579ffe5 (diff) |
fixes (shift)tab cycling through editable elements
Diffstat (limited to 'src/input.c')
-rw-r--r-- | src/input.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/input.c b/src/input.c index afa9360..6236c9d 100644 --- a/src/input.c +++ b/src/input.c @@ -38,6 +38,7 @@ void input_enter(Client *c) * disturbing the user */ gtk_widget_grab_focus(GTK_WIDGET(c->webview)); vb_modelabel_update(c, "-- INPUT --"); + webkit_web_view_run_javascript(c->webview, "var vimb_input_mode_element = document.activeElement;", NULL, NULL, NULL); } /** @@ -45,7 +46,7 @@ void input_enter(Client *c) */ void input_leave(Client *c) { - webkit_web_view_run_javascript(c->webview, "document.activeElement.blur();", NULL, NULL, NULL); + webkit_web_view_run_javascript(c->webview, "vimb_input_mode_element.blur();", NULL, NULL, NULL); vb_modelabel_update(c, ""); } |