webview.lua

changeset 1
4d7540af8518
parent 0
98e4b0c9fcac
--- a/webview.lua	Wed Sep 01 03:53:30 2010 +0100
+++ b/webview.lua	Wed Sep 01 03:59:23 2010 +0100
@@ -85,7 +85,7 @@
     form_insert_mode = function (view, w)
         view:add_signal("form-active", function ()
             (w.search_state or {}).marker = nil
-            w:set_mode("insert")
+            w:set_mode("normal")
         end)
         view:add_signal("root-active", function ()
             (w.search_state or {}).marker = nil
@@ -96,7 +96,7 @@
     -- Stop key events hitting the webview if the user isn't in insert mode
     mode_key_filter = function (view, w)
         view:add_signal("key-press", function ()
-            if not w:is_mode("insert") then return true end
+            if not w:is_mode("normal") then return true end
         end)
     end,
 

mercurial