Skip to content
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

Add keyboard lock to full screen mode #204

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

tomayac
Copy link

@tomayac tomayac commented Jun 23, 2023

This progressive enhancement changes full screen mode to require a long press of the Esc key, so that the player doesn't accidentally leave it when they want to cancel an in-game dialog.

Before:

Screenshot 2023-06-15 at 16 36 45

After:

Screenshot 2023-06-15 at 16 37 28

@tomayac tomayac changed the base branch from master to dev June 23, 2023 15:40
@tomayac
Copy link
Author

tomayac commented Jun 23, 2023

There's lots of noise because of trailing whitespace. The actual change begins here.

@tomayac tomayac marked this pull request as ready for review June 23, 2023 15:41
@tomayac
Copy link
Author

tomayac commented Oct 5, 2023

Is there any interest in merging this? For background: https://developer.chrome.com/blog/better-full-screen-mode/#in-practice.

@tomayac
Copy link
Author

tomayac commented Oct 23, 2023

@andreasrosdal, great to see this in fciv.net. @Lexxie9952, are you interested in this improvement, too?

@andreasrosdal
Copy link
Contributor

andreasrosdal commented Oct 23, 2023

I recommend contributing to FCIV.NET on https://github.com/freecivx/freecivx for an open source project with the goal of creating Freeciv 3D. I am sure it can be an interesting project for testing out new Google Chrome technologies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants