Skip to content

Commit c183c37

Browse files
committed
fix: forwarding keybinds sometimes crashing
closes #967
1 parent 0f48df3 commit c183c37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/uosc/lib/cursor.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ function cursor:trigger(event, shortcut)
183183
if forward_name then
184184
-- Forward events if there was no handler.
185185
local active = find_active_keybindings(forward_name)
186-
if active then
186+
if active and active.cmd then
187187
local is_wheel = event:find('wheel', 1, true)
188188
local is_up = event:sub(-3) == '_up'
189189
if active.owner then

0 commit comments

Comments
 (0)