[gnome-shell-extensions] windowsNavigator: Don't add linebreak before operator
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell-extensions] windowsNavigator: Don't add linebreak before operator
- Date: Wed, 21 Aug 2019 17:20:42 +0000 (UTC)
commit 376502e952db2aa77dc7a9b53185d39c76fddcd6
Author: Florian Müllner <fmuellner gnome org>
Date: Wed Aug 7 05:00:07 2019 +0200
windowsNavigator: Don't add linebreak before operator
When breaking overly long conditions into multiple lines, the operator
should end the previous line instead of starting the new one.
https://gitlab.gnome.org/GNOME/gnome-shell-extensions/merge_requests/91
extensions/windowsNavigator/extension.js | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/extensions/windowsNavigator/extension.js b/extensions/windowsNavigator/extension.js
index 05d2965..0164e5b 100644
--- a/extensions/windowsNavigator/extension.js
+++ b/extensions/windowsNavigator/extension.js
@@ -165,8 +165,8 @@ var MyWorkspacesView = class extends WorkspacesView.WorkspacesView {
let workspaceManager = global.workspace_manager;
if ((o.get_key_symbol() == Clutter.KEY_Alt_L ||
- o.get_key_symbol() == Clutter.KEY_Alt_R)
- && !this._pickWorkspace) {
+ o.get_key_symbol() == Clutter.KEY_Alt_R) &&
+ !this._pickWorkspace) {
this._prevFocusActor = global.stage.get_key_focus();
global.stage.set_key_focus(null);
this._active = workspaceManager.get_active_workspace_index();
@@ -175,8 +175,8 @@ var MyWorkspacesView = class extends WorkspacesView.WorkspacesView {
return true;
}
if ((o.get_key_symbol() == Clutter.KEY_Control_L ||
- o.get_key_symbol() == Clutter.KEY_Control_R)
- && !this._pickWindow) {
+ o.get_key_symbol() == Clutter.KEY_Control_R) &&
+ !this._pickWindow) {
this._prevFocusActor = global.stage.get_key_focus();
global.stage.set_key_focus(null);
this._pickWorkspace = true;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]