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

Fix keyboard support in DragValue #2342

Merged
merged 6 commits into from
Nov 29, 2022
Merged

Conversation

mwcampbell
Copy link
Contributor

Closes #2341.

@mwcampbell mwcampbell changed the title Fix keyboard usage of DragValue Fix keyboard support in DragValue Nov 24, 2022
@mwcampbell mwcampbell marked this pull request as ready for review November 24, 2022 18:09
Copy link
Owner

@emilk emilk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, but I would like to keep the behavior of pressing right and left!

crates/egui/src/memory.rs Outdated Show resolved Hide resolved
crates/egui/src/widgets/drag_value.rs Show resolved Hide resolved
Matt Campbell and others added 2 commits November 24, 2022 13:30
Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
@emilk emilk merged commit 0336816 into emilk:master Nov 29, 2022
@emilk
Copy link
Owner

emilk commented Nov 29, 2022

Thanks!

emilk added a commit that referenced this pull request Dec 2, 2022
* Enable incrementing and decrementing `DragValue` with the keyboard

* As soon as a DragValue is focused, render it in edit mode

* Simpler, more reliable approach to managing the drag value's edit string

* Add changelog entry

* Update doc comment

Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>

* Add comment explaining why we don't listen for left/right arrow

Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
JohannesProgrammiert pushed a commit to JohannesProgrammiert/egui that referenced this pull request Jan 21, 2023
* Enable incrementing and decrementing `DragValue` with the keyboard

* As soon as a DragValue is focused, render it in edit mode

* Simpler, more reliable approach to managing the drag value's edit string

* Add changelog entry

* Update doc comment

Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>

* Add comment explaining why we don't listen for left/right arrow

Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
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.

DragValue keyboard operation is broken
2 participants