Implement `modifier' run control keyword

This commit is contained in:
Thibault Jouan
2015-04-14 03:22:47 +00:00
parent 620150b6d8
commit 6ac26c370e
9 changed files with 58 additions and 18 deletions

View File

@@ -24,6 +24,10 @@ module Uh
instance_eval code, path
end
def modifier mod
@env.modifier = mod
end
def key keysym, &block
@env.keybinds[translate_keysym keysym] = block
end