Skip to content

Commit d3b0803

Browse files
authored
Merge pull request #31 from Bonyoze/wire-keyboard-fix
Add check for Wiremod Keyboard hook
2 parents af70491 + 028db45 commit d3b0803

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lua/custom_chat/client/main.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -500,8 +500,9 @@ local function CustomChat_OnPlayerBindPress( _, bind, pressed )
500500
-- Don't open if playable piano is blocking input
501501
if IsValid( LocalPlayer().Instrument ) then return end
502502

503-
-- Don't open if Starfall is blocking input
503+
-- Don't open if Wiremod or Starfall is blocking input
504504
local existingBindHooks = hook.GetTable()["PlayerBindPress"]
505+
if existingBindHooks["wire_keyboard_blockinput"] then return end
505506
if existingBindHooks["sf_keyboard_blockinput"] then return end
506507

507508
-- Don't open if anything else wants to block input

0 commit comments

Comments
 (0)