Skip to content

Commit

Permalink
Set cursor position to end when clicking equals button
Browse files Browse the repository at this point in the history
  • Loading branch information
Kuuuube committed Sep 1, 2024
1 parent f06bd45 commit 5ba43d0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/gui.rs
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,7 @@ fn make_button(calcuuube_gui: &mut CalcuuubeGui, ui: &mut egui::Ui, operation: &
}
"=" => {
calcuuube_gui.input_text = calcuuube_gui.result_text.clone();
calcuuube_gui.input_text_cursor_position = calcuuube_gui.input_text.len();
}
_ => {
let operation_chars: Chars = match operation {
Expand Down

0 comments on commit 5ba43d0

Please sign in to comment.