From 5a7444f424f2c5a3f9ec7e40fc8438a9598b5e12 Mon Sep 17 00:00:00 2001 From: Bogdan Abaev Date: Fri, 29 Aug 2025 22:12:36 -0700 Subject: [PATCH] virt table: don't propagate pageUp/Down on macOS (#5518) Same as on all other platforms. That way, if the parent container is scrollable, it will not scroll. --- chrome/content/zotero/components/virtualized-table.jsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/chrome/content/zotero/components/virtualized-table.jsx b/chrome/content/zotero/components/virtualized-table.jsx index ec16c2af7c..924d13f970 100644 --- a/chrome/content/zotero/components/virtualized-table.jsx +++ b/chrome/content/zotero/components/virtualized-table.jsx @@ -336,11 +336,7 @@ class VirtualizedTable extends React.Component { this._isMouseDrag = false; - this.preventScrollKeys = new Set(["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight", "Home", "End", " "]); - if (!Zotero.isMac) { - ['PageUp', 'PageDown'].forEach(key => this.preventScrollKeys.add(key)); - } - + this.preventScrollKeys = new Set(["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight", "Home", "End", " ", "PageUp", "PageDown"]); this.onSelection = oncePerAnimationFrame(this._onSelection); }