Fixed the copy key for messages.

This commit is contained in:
Storm Dragon
2026-01-03 22:07:03 -05:00
parent 5c9ceb42d5
commit 31cf0dbf5a
2 changed files with 16 additions and 2 deletions

View File

@@ -398,15 +398,15 @@ class Chat:
keyBindings.add( keyBindings.add(
keybindings.KeyBinding( keybindings.KeyBinding(
messageKey, messageKey,
keybindings.defaultModifierMask,
self.messageKeyModifier, self.messageKeyModifier,
keybindings.CTHULHU_MODIFIER_MASK,
self.inputEventHandlers["reviewMessage"])) self.inputEventHandlers["reviewMessage"]))
for messageKey in self.messageKeys: for messageKey in self.messageKeys:
keyBindings.add( keyBindings.add(
keybindings.KeyBinding( keybindings.KeyBinding(
messageKey, messageKey,
self.messageCopyKeyModifier, keybindings.defaultModifierMask,
self.messageCopyKeyModifier, self.messageCopyKeyModifier,
self.inputEventHandlers["copyMessage"])) self.inputEventHandlers["copyMessage"]))

View File

@@ -110,6 +110,7 @@ class SettingsManager(object):
self._appGeneral = {} self._appGeneral = {}
self._appPronunciations = {} self._appPronunciations = {}
self._appKeybindings = {} self._appKeybindings = {}
self._lastRoleSoundPresentation = None
if not self._loadBackend(): if not self._loadBackend():
raise Exception('SettingsManager._loadBackend failed.') raise Exception('SettingsManager._loadBackend failed.')
@@ -457,6 +458,19 @@ class SettingsManager(object):
msg = 'SETTINGS MANAGER: Runtime settings set.' msg = 'SETTINGS MANAGER: Runtime settings set.'
debug.printMessage(debug.LEVEL_INFO, msg, True) 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): def _setPronunciationsRuntime(self, pronunciationsDict):
pronunciation_dict.pronunciation_dict = {} pronunciation_dict.pronunciation_dict = {}