Skip to content

Ctrl-W closes the browser with no warning #47

Closed
@mattgodbolt

Description

@mattgodbolt

Ideally we'd trap ctrl-W but that seems impossible. However, it's a fairly common thing to press when playing Exile, and it's disastrous: closing the browser!

Closing the browser with a game running should at least prompt an "Are you sure?" though it's going to be tricky to come up with non-annoying behaviour. Maybe only ask if there's been a keypress "recently"?

Another thought is to finally support persistent browser-local storage. Then upon going "back" the game could continue where it left off.

Metadata

Metadata

Assignees

No one assigned

    Labels

    uiIssues affecting the web user interface or browser experience

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions