From 31cf0dbf5a2a86e68d609dde4c28a1fa0ebcc46d Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Sat, 3 Jan 2026 22:07:03 -0500 Subject: [PATCH] Fixed the copy key for messages. --- src/cthulhu/chat.py | 4 ++-- src/cthulhu/settings_manager.py | 14 ++++++++++++++ 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/src/cthulhu/chat.py b/src/cthulhu/chat.py index 1e4baad..ae10ed6 100644 --- a/src/cthulhu/chat.py +++ b/src/cthulhu/chat.py @@ -398,15 +398,15 @@ class Chat: keyBindings.add( keybindings.KeyBinding( messageKey, + keybindings.defaultModifierMask, self.messageKeyModifier, - keybindings.CTHULHU_MODIFIER_MASK, self.inputEventHandlers["reviewMessage"])) for messageKey in self.messageKeys: keyBindings.add( keybindings.KeyBinding( messageKey, - self.messageCopyKeyModifier, + keybindings.defaultModifierMask, self.messageCopyKeyModifier, self.inputEventHandlers["copyMessage"])) diff --git a/src/cthulhu/settings_manager.py b/src/cthulhu/settings_manager.py index b2e3eb9..eefb2d5 100644 --- a/src/cthulhu/settings_manager.py +++ b/src/cthulhu/settings_manager.py @@ -110,6 +110,7 @@ class SettingsManager(object): self._appGeneral = {} self._appPronunciations = {} self._appKeybindings = {} + self._lastRoleSoundPresentation = None if not self._loadBackend(): raise Exception('SettingsManager._loadBackend failed.') @@ -457,6 +458,19 @@ class SettingsManager(object): msg = 'SETTINGS MANAGER: Runtime settings set.' debug.printMessage(debug.LEVEL_INFO, msg, True) + self._logRoleSoundPresentationChange() + + def _logRoleSoundPresentationChange(self): + current = getattr(settings, "roleSoundPresentation", None) + if current == self._lastRoleSoundPresentation: + return + + msg = ( + "SETTINGS MANAGER: roleSoundPresentation changed to " + f"{current} profile={self.profile} app={self._activeApp}" + ) + debug.printMessage(debug.LEVEL_INFO, msg, True) + self._lastRoleSoundPresentation = current def _setPronunciationsRuntime(self, pronunciationsDict): pronunciation_dict.pronunciation_dict = {}