Skip to content

Commit

Permalink
Export KeyEvent (#100)
Browse files Browse the repository at this point in the history
Signed-off-by: shewer <[email protected]>
  • Loading branch information
shewer authored Apr 1, 2021
1 parent 7d68fc8 commit b195f92
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/types.cc
Original file line number Diff line number Diff line change
Expand Up @@ -356,8 +356,13 @@ namespace KeyEventReg {
int modifier(const T &t) {
return t.modifier();
}

an<T> make(const string &key) {
return New<T>(key) ;
}

static const luaL_Reg funcs[] = {
{ "KeyEvent", WRAP(make) },
{ NULL, NULL },
};

Expand Down

0 comments on commit b195f92

Please sign in to comment.