@trudb/tru-common-lib 0.2.24 → 0.2.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -4017,7 +4017,7 @@ class TruDetailViewBase {
|
|
|
4017
4017
|
this.setEntityDisplayValues(this.tableName);
|
|
4018
4018
|
}));
|
|
4019
4019
|
this.subs.push(fromEvent(document, 'keydown').subscribe((event) => {
|
|
4020
|
-
if (this.view.active) {
|
|
4020
|
+
if (this.view.active && this.view.window.active) {
|
|
4021
4021
|
let keySequence = this.util.getKeySequence(event);
|
|
4022
4022
|
if (keySequence === 'ctrl+i' || keySequence === 'meta+i') {
|
|
4023
4023
|
//this.onAddEntity();
|
|
@@ -7176,7 +7176,7 @@ class TruDataGrid {
|
|
|
7176
7176
|
this.api.refreshCells({ force: true });
|
|
7177
7177
|
}));
|
|
7178
7178
|
this.subs.push(fromEvent(document, 'keydown').subscribe((event) => {
|
|
7179
|
-
if (this.config.view.active) {
|
|
7179
|
+
if (this.config.view.active && this.config.view.window.active) {
|
|
7180
7180
|
let keySequence = this.util.getKeySequence(event);
|
|
7181
7181
|
if (keySequence === 'ctrl+i' || keySequence === 'meta+i') {
|
|
7182
7182
|
this.onAdd();
|
|
@@ -7200,7 +7200,10 @@ class TruDataGrid {
|
|
|
7200
7200
|
}
|
|
7201
7201
|
}));
|
|
7202
7202
|
this.subs.push(fromEvent(document, 'mousedown').subscribe((event) => {
|
|
7203
|
-
if (
|
|
7203
|
+
if (this.config.view.active &&
|
|
7204
|
+
this.config.view.window.active &&
|
|
7205
|
+
!this.dataGridContainer.nativeElement.contains(event.target) &&
|
|
7206
|
+
!this.util.findClosestAncestorByClass(event.target, '.cdk-overlay-container')) {
|
|
7204
7207
|
this.api.stopEditing();
|
|
7205
7208
|
}
|
|
7206
7209
|
}));
|
|
@@ -8741,7 +8744,7 @@ class TruDesktopWindow {
|
|
|
8741
8744
|
*
|
|
8742
8745
|
*/
|
|
8743
8746
|
onWindowKeydown = (event) => {
|
|
8744
|
-
if (!this.window.active)
|
|
8747
|
+
if (!this.window.active || event.key === 'Control' || event.key === 'Shift')
|
|
8745
8748
|
return;
|
|
8746
8749
|
var keySequence = this.util.getKeySequence(event);
|
|
8747
8750
|
if (keySequence === 'ctrl+s' || keySequence === 'meta+s') { //Save
|
|
@@ -9636,6 +9639,8 @@ class TruDesktop {
|
|
|
9636
9639
|
*
|
|
9637
9640
|
*/
|
|
9638
9641
|
onKeyDown = (event) => {
|
|
9642
|
+
if (event.key === 'Control' || event.key === 'Shift')
|
|
9643
|
+
return;
|
|
9639
9644
|
if (event.altKey)
|
|
9640
9645
|
event.preventDefault();
|
|
9641
9646
|
var keySequence = this.util.getKeySequence(event);
|