Skip to content

Optmenu reset keybind#1287

Open
the-phinet wants to merge 3 commits into
UZDoom:trunkfrom
the-phinet:sliders
Open

Optmenu reset keybind#1287
the-phinet wants to merge 3 commits into
UZDoom:trunkfrom
the-phinet:sliders

Conversation

@the-phinet

Copy link
Copy Markdown
Member

Backspace will reset most options now. Fields and binds have not been implemented, since those are weirdly complicated (at least the ones I was testing)

Fixes #756

Checklist

@github-actions

Copy link
Copy Markdown

Thanks for opening this PR! We'll review it soon.

I'm a bot that checks for some common problems. I'll update this comment with anything I find.

Nothing to report. Nice :)

@RicardoLuis0

Copy link
Copy Markdown
Contributor

Backspace will reset most options now. Fields and binds have not been implemented, since those are weirdly complicated (at least the ones I was testing)

Fixes #756

Checklist

a keybind seems like an odd way for reseting, wouldn't a reset button next to the option work better, and be easier for people to know it exists?

@the-phinet

Copy link
Copy Markdown
Member Author

It's the same key used to reset keybinds, so there's a precedent in the engine. I've seen the reset keybind in some engines before (I think retroarch uses select on a gamepad?). A graphical button would be good in the future (especially during the menu redesign), but a keybind will be required in either case for gamepad users.

@RicardoLuis0

RicardoLuis0 commented Apr 18, 2026

Copy link
Copy Markdown
Contributor

It's the same key used to reset keybinds, so there's a precedent in the engine. I've seen the reset keybind in some engines before (I think retroarch uses select on a gamepad?). A graphical button would be good in the future (especially during the menu redesign), but a keybind will be required in either case for gamepad users.

it's used to clear keybinds, not reset them to default, that's why it might be confusing to have it reset settings

@the-phinet

Copy link
Copy Markdown
Member Author

It's really not that confusing. Anyways, I would consider "clearing" a cvar to be resetting it to default in most cases. The only exception to that is binds

@RicardoLuis0 RicardoLuis0 added this to the 5.0 milestone Apr 19, 2026
@github-project-automation github-project-automation Bot moved this to Backlog in Road to 5.0 Apr 19, 2026
@the-phinet

Copy link
Copy Markdown
Member Author

What are your thoughts on adding a keybind? That way binds can be cleared AND reset, not just cleared? Maybe the delete key?

@RicardoLuis0

Copy link
Copy Markdown
Contributor

What are your thoughts on adding a keybind? That way binds can be cleared AND reset, not just cleared? Maybe the delete key?

might be better as just a dialog, press backspace, get a "do you want to clear or reset or cancel" choice

@RicardoLuis0

Copy link
Copy Markdown
Contributor

that way accidental presses of backspace don't get rid of binds either

@the-phinet

Copy link
Copy Markdown
Member Author

might be better as just a dialog, press backspace, get a "do you want to clear or reset or cancel" choice

Specifically for binds, sure. But not for other options. Getting a popup for every thing you're trying to reset is wildly annoying.

So that's a no to adding a second key? And keeping backspace as the reset bind for options?

@RicardoLuis0

RicardoLuis0 commented Apr 20, 2026

Copy link
Copy Markdown
Contributor

So that's a no to adding a second key? And keeping backspace as the reset bind for options?

i just think a dialog would be more useful (doesn't need anyone to learn a new key, and keeps del's ability to be bound as a regular key as it can now)

@RicardoLuis0

RicardoLuis0 commented Apr 20, 2026

Copy link
Copy Markdown
Contributor

Specifically for binds, sure. But not for other options. Getting a popup for every thing you're trying to reset is wildly annoying.

just for binds yeah, other options don't even have a concept of "clear" to need a dialog

@the-phinet

Copy link
Copy Markdown
Member Author

i just think a dialog would be more useful (doesn't need anyone to learn a new key, and keeps del's ability to be bound as a regular key as it can now)

just for binds yeah, other options don't even have a concept of "clear" to need a dialog

I feel that I'm having trouble following lol. Is this correct:

  • backspace to reset options is fine for now (not binds)
  • eventually (in 5.1) we can add a button to reset (during the menu rework)
  • eventually (in 5.1) we can add a dialogue to rebind/clear/reset binds (during the menu rework)

@RicardoLuis0

Copy link
Copy Markdown
Contributor

i just think a dialog would be more useful (doesn't need anyone to learn a new key, and keeps del's ability to be bound as a regular key as it can now)
just for binds yeah, other options don't even have a concept of "clear" to need a dialog

I feel that I'm having trouble following lol. Is this correct:

  • backspace to reset options is fine for now (not binds)
  • eventually (in 5.1) we can add a button to reset (during the menu rework)
  • eventually (in 5.1) we can add a dialogue to rebind/clear/reset binds (during the menu rework)

the dialogue doesn't need the menu rework, it can just use the existing messagebox menu (but if you feel it's best for 5.1 then it can be left for 5.1)

@the-phinet

the-phinet commented Apr 20, 2026

Copy link
Copy Markdown
Member Author

the dialogue doesn't need the menu rework, it can just use the existing messagebox menu (but if you feel it's best for 5.1 then it can be left for 5.1)

That's fair. I'd like 5.0 out the door soon, so I'm gonna say no to implementing the dialogue now. (I do agree it should exist in the future)

@the-phinet the-phinet moved this from Backlog to In review in Road to 5.0 Apr 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: In review

Development

Successfully merging this pull request may close these issues.

A way to reset individual options in the menu

2 participants