From fb3466b392caf7df3a34b9817835ce68bcfa3e3c Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Thu, 6 Jul 2023 19:21:11 -0400 Subject: [PATCH] Fix Ctrl-Q on Linux Fixes #3199 --- chrome/content/zotero/platformKeys.js | 2 ++ chrome/content/zotero/zoteroPane.xhtml | 10 +++++----- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/chrome/content/zotero/platformKeys.js b/chrome/content/zotero/platformKeys.js index 0e54d49589..ee0e786ae9 100644 --- a/chrome/content/zotero/platformKeys.js +++ b/chrome/content/zotero/platformKeys.js @@ -4,6 +4,7 @@ window.addEventListener('DOMContentLoaded', () => { let isMac = AppConstants.platform == 'macosx'; let redoKey = document.getElementById('key_redo'); + let macUnixQuitKey = document.getElementById('key_quitApplication'); let fileQuitSeparator = document.getElementById('menu_fileQuitSeparatorNonMac'); let fileQuitItemWin = document.getElementById('menu_fileQuitItemWin'); @@ -22,6 +23,7 @@ window.addEventListener('DOMContentLoaded', () => { redoKey.setAttribute('data-l10n-id', 'text-action-redo-shortcut'); redoKey.setAttribute('modifiers', 'accel'); } + if (macUnixQuitKey) macUnixQuitKey.disabled = true; } else { // Set behavior on all non-Windows platforms diff --git a/chrome/content/zotero/zoteroPane.xhtml b/chrome/content/zotero/zoteroPane.xhtml index e91d7c4e0f..206308b6a8 100644 --- a/chrome/content/zotero/zoteroPane.xhtml +++ b/chrome/content/zotero/zoteroPane.xhtml @@ -104,6 +104,11 @@ + -