[the-board] [ui] Add Ctrl+N keyboard shortcut to add new page



commit 061e8e86cd5070f5904f7db058b75212c938182e
Author: Lucas Rocha <lucasr gnome org>
Date:   Sat Apr 2 22:56:25 2011 +0100

    [ui] Add Ctrl+N keyboard shortcut to add new page

 src/js/ui/mainWindow.js |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/js/ui/mainWindow.js b/src/js/ui/mainWindow.js
index 321dcbb..aa24006 100644
--- a/src/js/ui/mainWindow.js
+++ b/src/js/ui/mainWindow.js
@@ -809,6 +809,9 @@ MainWindow.prototype = {
         } else if (key == Clutter.Delete) {
             this._currentPage.doAction("remove");
             return true;
+        } else if (isControl && text == 'n') {
+            this._addNewPage();
+            return true;
         } 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]