Skip to content

Commit 4787bda

Browse files
committed
fix: dismiss image gallery when escape key is pressed
1 parent b610c8a commit 4787bda

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/LiveDevelopment/BrowserScripts/RemoteFunctions.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3184,9 +3184,6 @@ function RemoteFunctions(config = {}) {
31843184
}
31853185

31863186
function onKeyDown(event) {
3187-
if ((event.key === "Escape" || event.key === "Esc")) {
3188-
dismissUIAndCleanupState();
3189-
}
31903187
if (!_setup && _validEvent(event)) {
31913188
window.document.addEventListener("keyup", onKeyUp);
31923189
window.document.addEventListener("mouseover", onMouseOver);

src/LiveDevelopment/LiveDevMultiBrowser.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -715,6 +715,7 @@ define(function (require, exports, module) {
715715
function dismissLivePreviewBoxes() {
716716
if (_protocol) {
717717
_protocol.evaluate("_LD.dismissUIAndCleanupState()");
718+
_protocol.evaluate("_LD.dismissImageRibbonGallery()");
718719
}
719720
}
720721

0 commit comments

Comments
 (0)