Skip to content

Commit

Permalink
Merge pull request #149 from UMN-LATIS/Enter-Bug-Fixes
Browse files Browse the repository at this point in the history
Bug Fix: "Enter" shortcut.
  • Loading branch information
thorn573 authored Jan 31, 2024
2 parents 0acaf63 + 94999d4 commit b2e424e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion _site/leaflet-treering.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,9 @@ function LTreering (viewer, basePath, options, base_layer, gl_layer) {
this.dating.keypressAction(e);
return;
}
if (this.helper.dialog) this.helper.dialog.close();

if (this.helper.dialog) this.helper?.dialog._closeNode.click();

if (this.measurementOptions.dialog) {
$("#confirm-button").click();
}
Expand Down
4 changes: 3 additions & 1 deletion leaflet-treering.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,9 @@ function LTreering (viewer, basePath, options, base_layer, gl_layer) {
this.dating.keypressAction(e);
return;
}
if (this.helper.dialog) this.helper.dialog.close();

if (this.helper.dialog) this.helper?.dialog._closeNode.click();

if (this.measurementOptions.dialog) {
$("#confirm-button").click();
}
Expand Down

0 comments on commit b2e424e

Please sign in to comment.