| 1894 | } |
| 1895 | |
| 1896 | static int hotkey_getKeybindingInput(lua_State *L) { |
| 1897 | auto hotkey_mgr = Core::getInstance().getHotkeyManager(); |
| 1898 | auto input = hotkey_mgr->getKeybindingInput(); |
| 1899 | |
| 1900 | if (input.empty()) { |
| 1901 | lua_pushnil(L); |
| 1902 | } else { |
| 1903 | lua_pushlstring(L, input.data(), input.size()); |
| 1904 | } |
| 1905 | return 1; |
| 1906 | } |
| 1907 | |
| 1908 | static int hotkey_removeKeybind(lua_State *L) { |
| 1909 | auto hotkey_mgr = Core::getInstance().getHotkeyManager(); |
nothing calls this directly
no test coverage detected