Skip to content

Commit 972605c

Browse files
committed
fix: in macos full screen auto exits when escape key is pressed
1 parent 76ab77e commit 972605c

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/command/KeyBindingManager.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1355,6 +1355,9 @@ define(function (require, exports, module) {
13551355
if (!handled && _handleKey(shortcut)) {
13561356
event.stopPropagation();
13571357
event.preventDefault();
1358+
} else if (!handled && event.key === "Escape" && Phoenix.isNativeApp && brackets.platform === "mac") {
1359+
// unhandled Esc reaching the native macOS window exits full screen
1360+
event.preventDefault();
13581361
}
13591362
}
13601363

0 commit comments

Comments
 (0)