| 1645 | |
| 1646 | |
| 1647 | int LuaCallOuts::GetKeyModifiers(lua_State* L) { |
| 1648 | BzfDisplay* dpy = getDisplay(); |
| 1649 | if (dpy == NULL) { |
| 1650 | return luaL_pushnil(L); |
| 1651 | } |
| 1652 | bool alt, ctrl, shift; |
| 1653 | dpy->getModState(shift, ctrl, alt); |
| 1654 | lua_pushboolean(L, alt); |
| 1655 | lua_pushboolean(L, ctrl); |
| 1656 | lua_pushboolean(L, shift); |
| 1657 | return 3; |
| 1658 | } |
| 1659 | |
| 1660 | |
| 1661 | //============================================================================// |
nothing calls this directly
no test coverage detected