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 = {}