[the-board] [ui] Pressing Delete key now removes selected things



commit 057927dfacedd9a0b5bae117bfe408fb5d47f1f8
Author: Lucas Rocha <lucasr gnome org>
Date:   Sat Apr 2 01:42:48 2011 +0100

    [ui] Pressing Delete key now removes selected things

 src/js/ui/mainWindow.js |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/js/ui/mainWindow.js b/src/js/ui/mainWindow.js
index 230fe6d..7639119 100644
--- a/src/js/ui/mainWindow.js
+++ b/src/js/ui/mainWindow.js
@@ -796,6 +796,8 @@ MainWindow.prototype = {
             if (this._currentPage.selectedThings.length > 0) {
                 this._currentPage.unselectAllThings();
             }
+        } else if (key == Clutter.Delete) {
+            this._currentPage.doAction("remove");
         } else if (text == 't') {
             this._currentPage.addThingFromState({ id: 'note' });
             return true;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]