Skip to content

Commit

Permalink
Merge pull request #31 from Bonyoze/wire-keyboard-fix
Browse files Browse the repository at this point in the history
Add check for Wiremod Keyboard hook
  • Loading branch information
StyledStrike authored Sep 20, 2024
2 parents af70491 + 028db45 commit d3b0803
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lua/custom_chat/client/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -500,8 +500,9 @@ local function CustomChat_OnPlayerBindPress( _, bind, pressed )
-- Don't open if playable piano is blocking input
if IsValid( LocalPlayer().Instrument ) then return end

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

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

0 comments on commit d3b0803

Please sign in to comment.