[gnote] Fix delete key in main window
- From: Aurimas Äernius <aurimasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnote] Fix delete key in main window
- Date: Fri, 26 Oct 2012 19:25:05 +0000 (UTC)
commit 1549b2b234a60e933f293db77061e625d28c038b
Author: Aurimas Äernius <aurisc4 gmail com>
Date: Fri Oct 26 21:53:41 2012 +0300
Fix delete key in main window
Delete selected notes.
src/searchnoteswidget.cpp | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/searchnoteswidget.cpp b/src/searchnoteswidget.cpp
index 8a5e379..234ffd0 100644
--- a/src/searchnoteswidget.cpp
+++ b/src/searchnoteswidget.cpp
@@ -1114,6 +1114,9 @@ bool SearchNotesWidget::on_treeview_button_released(GdkEventButton *ev)
bool SearchNotesWidget::on_treeview_key_pressed(GdkEventKey * ev)
{
switch(ev->keyval) {
+ case GDK_KEY_Delete:
+ delete_selected_notes();
+ break;
case GDK_KEY_Menu:
{
// Pop up the context menu if a note is selected
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]