[gnome-documents] overview: Restore the accelerators for going back
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-documents] overview: Restore the accelerators for going back
- Date: Thu, 11 May 2017 21:39:11 +0000 (UTC)
commit a2ddf64d8907cdfc8f7cea051904846758cdd9bf
Author: Debarshi Ray <debarshir gnome org>
Date: Thu May 11 18:30:00 2017 +0200
overview: Restore the accelerators for going back
Fallout from ec8369e87be7888dbe28cc5ccfbb161b74e6f2c1
https://bugzilla.gnome.org/show_bug.cgi?id=782524
src/overview.js | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/src/overview.js b/src/overview.js
index 8fd00a9..d11910e 100644
--- a/src/overview.js
+++ b/src/overview.js
@@ -1064,9 +1064,16 @@ const OverviewStack = new Lang.Class({
},
_getDefaultActions: function() {
+ let backAccels = ['Back'];
+ if (this.get_direction() == Gtk.TextDirection.LTR)
+ backAccels.push('<Alt>Left');
+ else
+ backAccels.push('<Alt>Right');
+
return [
{ name: 'go-back',
- callback: Lang.bind(this, this._goBack) },
+ callback: Lang.bind(this, this._goBack),
+ accels: backAccels },
{ name: 'selection-mode',
callback: Utils.actionToggleCallback,
state: GLib.Variant.new('b', false),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]