Skip to content

Commit d2b58b8

Browse files
committed
[window] prevent window closing under windows when hitting CTLR_W in other tab and comming to this tab
SQUASHED: AUTO-COMMIT-src-components-widgets-lively-window.js,
1 parent 7b48b7c commit d2b58b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/widgets/lively-window.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ export default class Window extends Morph {
495495

496496
onKeyUp(evt) {
497497
var char = String.fromCharCode(evt.keyCode || evt.charCode);
498-
if ((evt.altKey || evt.ctrlKey) && char == "W") {
498+
if ((evt.altKey) && char == "W") { // is this "evt.ctrlKey" used unter Mac? , it makes problems under Windows
499499
this.onCloseButtonClicked(evt)
500500
evt.preventDefault();
501501
}

0 commit comments

Comments
 (0)