fix: boundKeyPressCombos [fix: #1000, #1251 , #1231 , #738]#1253
Merged
mehah merged 3 commits intoopentibiabr:mainfrom Jul 27, 2025
Merged
fix: boundKeyPressCombos [fix: #1000, #1251 , #1231 , #738]#1253mehah merged 3 commits intoopentibiabr:mainfrom
mehah merged 3 commits intoopentibiabr:mainfrom
Conversation
This was
linked to
issues
Jul 27, 2025
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



this code was made more than 4 years ago (Jul 24, 2021). f247211
but it is currently causing problems: #1000, #1251 , #1231 , #738
modules.game_hotkeys.createHotkeyBlock("identifier")
Creates a hotkey block
Returns: A block object with:
release()- Releases the hotkey blockgetId()- Returns ID "spell_assign_window_gameActionbar" ["argument + source module"] trasabilitymodules.game_hotkeys.areHotkeysDisabled()
Checks if any hotkey blocks are currently active.
modules.game_hotkeys.printHotkeyBlockingInfo()
returns information about who blocked it and what module it was
Automatic vs Manual Management
Automatic Cleanup
When you assign the block to a window's
hotkeyBlockproperty, cleanup happens automatically ondestroy():example
Manual Management
When you use
hide()instead ofdestroy(), you must manually release:Old Code
the author of the code does not handle destroy()
use case
game_shop (free hotkeys in wasd) vs game_actionbar (block hotkeys in wasd)
when closing actiobar windows, hotkeys are released
2025-07-26.23-59-26.mp4