Fixed the copy key for messages.
This commit is contained in:
@@ -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"]))
|
||||
|
||||
|
||||
@@ -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 = {}
|
||||
|
||||
Reference in New Issue
Block a user