[the-board] [ui] Add missing returns in MainWindow's key handling
- From: Lucas Rocha <lucasr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [the-board] [ui] Add missing returns in MainWindow's key handling
- Date: Sat, 2 Apr 2011 21:57:14 +0000 (UTC)
commit cae334f3c43c3738915aef311701c8a23542b5e5
Author: Lucas Rocha <lucasr gnome org>
Date: Sat Apr 2 16:22:53 2011 +0100
[ui] Add missing returns in MainWindow's key handling
src/js/ui/mainWindow.js | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/js/ui/mainWindow.js b/src/js/ui/mainWindow.js
index 7639119..045a8e5 100644
--- a/src/js/ui/mainWindow.js
+++ b/src/js/ui/mainWindow.js
@@ -790,14 +790,18 @@ MainWindow.prototype = {
if (isControl && text == 'v') {
this._pasteClipboardContent();
+ return true;
} else if (isControl && text == 'a') {
this._currentPage.selectAllThings();
+ return true;
} else if (key == Clutter.Escape) {
if (this._currentPage.selectedThings.length > 0) {
this._currentPage.unselectAllThings();
}
+ return true;
} else if (key == Clutter.Delete) {
this._currentPage.doAction("remove");
+ 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]