From 5ed789607ab9b43b560479e35fa0e4cd95d4ae66 Mon Sep 17 00:00:00 2001 From: Barijaona Ramaholimihaso Date: Sat, 22 Jun 2024 20:27:26 +0300 Subject: [PATCH] Restore delete key behavior on articles Make Delete key delete the article when focus is on the article content panel. Fix issue #1735 --- Vienna/Sources/Application/AppController.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Vienna/Sources/Application/AppController.m b/Vienna/Sources/Application/AppController.m index 88d943b9dc..c7d4e07cac 100644 --- a/Vienna/Sources/Application/AppController.m +++ b/Vienna/Sources/Application/AppController.m @@ -1949,7 +1949,7 @@ -(BOOL)handleKeyDown:(unichar)keyChar withFlags:(NSUInteger)flags if (self.mainWindow.firstResponder == self.foldersTree.mainView) { [self deleteFolder:self]; return YES; - } else if (self.mainWindow.firstResponder == (self.articleController.mainArticleView).mainView) { + } else if (self.browser.activeTab == nil) { // make sure we are in the articles tab [self deleteMessage:self]; return YES; }