Skip to content

Commit

Permalink
Add Ctrl+c stop binding.
Browse files Browse the repository at this point in the history
  • Loading branch information
mason-larobina committed Sep 1, 2010
1 parent 9b28f26 commit c51476e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
9 changes: 5 additions & 4 deletions config/binds.lua
Expand Up @@ -91,14 +91,15 @@ binds.mode_binds = {
key({"Control"}, "Page_Down", function (w) w:next_tab() end),
buf("^[0-9]*gT$", function (w, b) w:prev_tab(tonumber(string.match(b, "^(%d*)gT$") or 1)) end),
buf("^[0-9]*gt$", function (w, b) w:next_tab(tonumber(string.match(b, "^(%d*)gt$") or 1)) end),
buf("^gH$", function (w) w:new_tab(homepage) end),
buf("^d$", function (w) w:close_tab() end),
key({}, "<", function (w) w.tabs:reorder(w:get_current(), w.tabs:current() -1) end),
key({}, ">", function (w) w.tabs:reorder(w:get_current(), (w.tabs:current() + 1) % w.tabs:count()) end),

key({}, "r", function (w) w:reload() end),
buf("^gH$", function (w) w:new_tab(homepage) end),
buf("^gh$", function (w) w:navigate(homepage) end),

key({}, "<", function (w) w.tabs:reorder(w:get_current(), w.tabs:current() -1) end),
key({}, ">", function (w) w.tabs:reorder(w:get_current(), (w.tabs:current() + 1) % w.tabs:count()) end),
key({}, "r", function (w) w:reload() end),
key({"Control"}, "c", function (w) w:stop() end),

-- Window
buf("^ZZ$", function (w) w:close_win() end),
Expand Down
5 changes: 2 additions & 3 deletions config/webview.lua
Expand Up @@ -212,9 +212,8 @@ webview.init_funcs = {
-- as the first argument. All methods must take `view` & `w` as the first two
-- arguments.
webview.methods = {
reload = function (view, w)
view:reload()
end,
reload = function (view) view:reload() end,
stop = function (view) view:stop() end,

-- Property functions
get = function (view, w, k)
Expand Down

0 comments on commit c51476e

Please sign in to comment.