-
Notifications
You must be signed in to change notification settings - Fork 166
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Give option to bind hotkey for switching window mode #417
Comments
|
@jorys-paulin Anything other than ESC and something which is not used anywhere or with high chance not used. ESC closes most games, or opens the game menu. Best would be alt+enter, because it is the default binding for switching window/fullscreen, at least under Windows. |
@makedir On Windows 10, I tried |
@jorys-paulin No. alt+enter is the correct normal Window binding to switch between windowed and fullscreen applications, mostly since Windows NT. https://support.microsoft.com/en-us/help/81823/alt-enter-switches-between-window-and-full-screen It wont work for Chrome mostly, because Chrome has no (normal) fullscreen mode. It mostly just works for (whatever) applications, like games. Please dont change it to any single binding like F11. Something like ant+F11 maybe, but better give option to make it changeable for the user. |
@makedir Well windows explorer does nothing when |
@jorys-paulin Well, I would be fine with a change to F11 for now, until a user change would be implemented. Anything other than ESC like F11 would be ok. |
@makedir I made a quick & dirty build of your feature request, you can only change fullscreen or windowed at startup for now. |
@jorys-paulin but that wouldnt help much. I need to toggle fullscreen/window a lot like every few minutes. Can you please make another dirty build of changing ESC to F11, that would help a lot. Or wont that work after the game started? Is the keybinding intercepted on the client first? |
@makedir I don't really know since the cursor (and so the keyboard) is captured by the C++ module, I don't know if I'll be able to capture it using javascript. |
@jorys-paulin but where does the esc binding come from? didnt you implement it? same with when clicking on the maximize button, it goes into fullscreen instead of maximizing the window. |
@makedir It's all handled by chrome |
@jorys-paulin If I click on maximize on another app like Google Keep it does not go into fullscreen, so that is a behavior of your app. |
@jorys-paulin where? I don't see any builds but one from march 28th. |
@makedir It has to be accepted (marked merged) to be in the official builds |
@jorys-paulin and how would I test it then? I don't see any test build download links on the site. |
@makedir Let me make you a build, I'll be back in a minute |
@makedir Sorry, it is taking sooo long to upload... |
@makedir Here's a build. Please note that I wasn't able to add a hotkey :/ |
And that means what? What is changed then? |
That means you can't change screen size at runtime but before you launch a game. It's mostly a hack, but I don't know how to make it work at runtime unfortunately... |
@makedir So, is it a build you'll accept? What should I change? |
You can actually switch from full-screen to windowed when you connect to a game and immediately, before clicking anywhere in the window, pressing the [ESC] key.
P.S. |
@elegos I said that before up there. This is redundant, because I want to switch in game back and forth from Window to full-screen and this doesnt work so far. |
The default ESC bind is contra-productive, because it is overwritten by most games. You just can switch to window mode while the connecting... window happens. If you are in the game, it doesnt work anymore, and closes the game if pressed ESC (most games close by this).
The text was updated successfully, but these errors were encountered: