diff --git a/app/src/main/java/io/xpipe/app/browser/file/BrowserFileListComp.java b/app/src/main/java/io/xpipe/app/browser/file/BrowserFileListComp.java index f9cfb23a2..68b0e70fe 100644 --- a/app/src/main/java/io/xpipe/app/browser/file/BrowserFileListComp.java +++ b/app/src/main/java/io/xpipe/app/browser/file/BrowserFileListComp.java @@ -300,6 +300,11 @@ public final class BrowserFileListComp extends SimpleComp { private void prepareTableShortcuts(TableView table) { table.addEventFilter(KeyEvent.KEY_PRESSED, event -> { + // Prevent post close events + if (fileList.getFileSystemModel().isClosed()) { + return; + } + var selected = fileList.getSelection(); var action = BrowserAction.getFlattened(fileList.getFileSystemModel(), selected).stream() .filter(browserAction -> browserAction.isApplicable(fileList.getFileSystemModel(), selected)