Open xmha97 opened 4 years ago
I suppose if other UWP apps use this keybinding, then we could too. The system already set a precedent that this key chord is used for that, so we could use it too, I don't feel bad about hijacking it in this case.
Yeah, I don't see why not.
I was trying to work this out, however I found that currently there is no support for windows key modifier. Also based on comments in #4329, there's no plan to implement it.
I'm wondering how we can bring in this feature if the modifier cannot be added. Does the terminal support any win key based shortcuts right now?
Since Win+Shift+Enter is a system keybinding that's usually bound to fullscreen UWP applications, we can special-case that keybinding to fullscreen the Terminal, so it behaves like other apps on the system. It would not be a general-purpose "users can bind the Win key", it would be a one-off special case.
Powershell and command prompt have fullscreen on alt + shift + enter. How about staying consistent with them?
Uh, powershell and command prompt have fullscreen on alt+enter. Terminal does too. It works today.
By habit from visual studio I always only tried alt + shift + enter. Never realized just shift + enter worked. Makes sense now, Thanks!
So basically, in that case, there is kind of a bug where holding an additional key doesn't work in the terminal but does in command prompt and powershell.
Hello! Could I give this a shot?
@hessedoneen Sure, go for it!
With this one, I probably would skip adding this as a whole proper keybinding. The TerminalApp
layer, where most other keybindings are handled, doesn't know anything about the win key. We might need to handle this up in IslandWindow
, and cause that to trigger entering fullscreen mode.
Oh uh, this might be harder than I thought.
I thought it would be as easy as slapping
{ "command": "toggleFullscreen", "keys": "win+shift+enter" },
into defaults.json
.
I'm not sure that we ever get the Win+Shift+Enter keystroke to our wndproc. That would certainly make this harder. We might need to follow-up internally to see where that keystroke is getting eaten by the OS, and see if we can let it still get passed to apps.
Hello, I know this app will full-screen with
Alt
+Enter
andF11
Please add a new keyboard shortcut for full-screen:Win
+Shift
+Enter
Why?! Because all universal apps became full-screen withWin
+Shift
+Enter
Thanks.
Win
+Shift
+Enter
is already in use
https://defkey.com/what-means/win-shift-enter
Hello, I know this app will full-screen with
Alt
+Enter
andF11
Please add a new keyboard shortcut for full-screen:Win
+Shift
+Enter
Why?! Because all universal apps became full-screen withWin
+Shift
+Enter
Thanks.