From fa1103a905a6781ff207f51b293156a23b093edd Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 15 Feb 2016 23:16:53 +0000 Subject: Stop Delete key deleting content in unexpected circumstances. --- src/wx/content_panel.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/wx') diff --git a/src/wx/content_panel.cc b/src/wx/content_panel.cc index bae8883de..a68998232 100644 --- a/src/wx/content_panel.cc +++ b/src/wx/content_panel.cc @@ -329,9 +329,9 @@ void ContentPanel::remove_clicked () { /* This method is also called when Delete is pressed, so check that our notebook page - is visible. + is visible and that the content list is focussed. */ - if (_parent->GetCurrentPage() != _panel) { + if (_parent->GetCurrentPage() != _panel || !_content->HasFocus()) { return; } -- cgit v1.2.3