mirror of
https://github.com/lubosz/overte.git
synced 2025-04-19 16:44:04 +02:00
Set the shortkey CTRL-A and CTRL-I only
Set the shortkeys for Select All and Inverse Selection to respond to CTRL-A and CTRL-I only. (Previously it was also responding to Ctrl-Shift-A, Ctrl-Alt-A, Ctrl-Shift-Alt-A and Ctrl-Shift-I, Ctrl-Alt-I, Ctrl-Shift-Alt-I)
This commit is contained in:
parent
bcebf36261
commit
8cc9c19b40
1 changed files with 2 additions and 2 deletions
|
@ -1542,7 +1542,7 @@ function loaded() {
|
|||
break;
|
||||
}
|
||||
|
||||
if (controlKey && keyCodeString === "A") {
|
||||
if (controlKey && !shiftKey && !altKey && keyCodeString === "A") {
|
||||
let visibleEntityIDs = visibleEntities.map(visibleEntity => visibleEntity.id);
|
||||
let selectionIncludesAllVisibleEntityIDs = visibleEntityIDs.every(visibleEntityID => {
|
||||
return selectedEntities.includes(visibleEntityID);
|
||||
|
@ -1565,7 +1565,7 @@ function loaded() {
|
|||
return;
|
||||
}
|
||||
|
||||
if (controlKey && keyCodeString === "I") {
|
||||
if (controlKey && !shiftKey && !altKey && keyCodeString === "I") {
|
||||
let visibleEntityIDs = visibleEntities.map(visibleEntity => visibleEntity.id);
|
||||
let selectionIncludesAllVisibleEntityIDs = visibleEntityIDs.every(visibleEntityID => {
|
||||
return selectedEntities.includes(visibleEntityID);
|
||||
|
|
Loading…
Reference in a new issue