Commit 250e68bb authored by Fabian-Andree Heidemann's avatar Fabian-Andree Heidemann
Browse files

Quickfix for #1990:

- No trigger of arrows and esc while lightbox open
- Feature request: change selection matching to lightbox
parent 45f15ebc
......@@ -53,6 +53,7 @@ define([
lastRefresh: null,
updateState: 0, // 0: idle, >0: last request, -1: running,
// -2: done & requested again, -3: running & requested again
$lightbox: $("#lightbox"),
};
// Get the default view from the preferences
......
......@@ -62,6 +62,7 @@ define(function() {
value: "left",
callback: function(event) {
event.preventDefault();
if (this.fb.workflow.$lightbox.css("display") !== "none") return;
this.fb.selections.selectPrevNode();
}
},
......@@ -70,8 +71,8 @@ define(function() {
value: "right",
callback: function(event) {
event.preventDefault();
if (this.fb.workflow.$lightbox.css("display") !== "none") return;
this.fb.selections.selectNextNode();
}
},
arrowDown: {
......@@ -79,6 +80,7 @@ define(function() {
value: "down",
callback: function(event) {
event.preventDefault();
if (this.fb.workflow.$lightbox.css("display") !== "none") return;
if (this.fb.workflow.currentView.type == "Table") {
this.fb.selections.selectNextNode();
} else {
......@@ -97,6 +99,7 @@ define(function() {
value: "up",
callback: function(event) {
event.preventDefault();
if (this.fb.workflow.$lightbox.css("display") !== "none") return;
if (this.fb.workflow.currentView.type == "Table") {
this.fb.selections.selectPrevNode();
} else {
......@@ -172,6 +175,7 @@ define(function() {
value: "esc",
callback: function(event) {
event.preventDefault();
if (this.fb.workflow.$lightbox.css("display") !== "none") return;
this.fb.selections.unselectAll();
this.fb.view.filterField.css({
"visibility": "hidden"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment