CodeEdit icon indicating copy to clipboard operation
CodeEdit copied to clipboard

✨ Keyboard Shortcut: Use ⌘W to close window

Open Jerry23011 opened this issue 1 year ago • 6 comments

Is your feature request related to a problem? Please describe.

Currently, I can't close CodeEdit's windows using the keyboard shortcut: ⌘W like that in Xcode

Describe the solution you'd like

Implement the Keyboard shortcut ⌘W for closing window. I would be nice if ⌘W could behave just like Xcode.

Describe alternatives you've considered

I'm now using the button on the top left corner to close the window.

Additional context

In the welcoming page, for instance, I can only click the "x" button to close the window, but I can't use the Keyboard shortcut, while in Xcode, it is possible to close it with ⌘W 截屏2023-03-03 09 25 47

Jerry23011 avatar Mar 03 '23 01:03 Jerry23011

Last time I checked ⌘F is assigned to Find. It looks like you close a window with ⇧⌘W.

image

austincondiff avatar Mar 03 '23 04:03 austincondiff

Yes, I think it would be great if CE could adopt the same logic as Xcode and Safari: If there is no multiple tabs, then ⌘W closes the Window. Also, I find that ⇧⌘W doesn't work in the welcoming page.

Jerry23011 avatar Mar 03 '23 05:03 Jerry23011

I'm sorry, I meant ⌘W, lol ⌘F is find

Jerry23011 avatar Mar 03 '23 05:03 Jerry23011

@austincondiff could you assign this to me? On my fork its almost complete.

luah5 avatar Mar 29 '23 19:03 luah5

⌘W closes the welcome screen for me and the main window of CodeEdit.

0xWDG avatar Jun 19 '23 18:06 0xWDG

⌘W closes the welcome screen for me and the main window of CodeEdit.

Yeah it’s not properly implemented, as luah's PR (https://github.com/CodeEditApp/CodeEdit/pull/1211#issuecomment-1493129506) described, we’ll probably wait till a shortcut architecture came up to do this.

Cubik65536 avatar Jun 22 '23 13:06 Cubik65536