Register key bindings in the env with RunControl

This commit is contained in:
Thibault Jouan
2015-04-14 21:26:29 +00:00
parent b1aa430ef3
commit 2a1a1f1185
5 changed files with 31 additions and 4 deletions

View File

@@ -16,6 +16,10 @@ module Uh
def evaluate code
instance_eval code
end
def key keysym, &block
@env.keybinds[keysym] = block
end
end
end
end