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

Text Selection for text_input widget #202

Merged
merged 28 commits into from
Mar 25, 2020
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
b2344a8
inital patch by Finnerale
FabianLars Feb 22, 2020
33ca29f
ctrl + a selection for text input
FabianLars Feb 22, 2020
f72b1f8
double click for word selection
FabianLars Feb 22, 2020
883843a
max time window for double click
FabianLars Feb 23, 2020
e8bf0fc
styling example fixed (added selection_color)
FabianLars Feb 23, 2020
190dcef
Text Selection completely rewritten
FabianLars Feb 24, 2020
c6c8cab
moved cursor into own file
FabianLars Feb 24, 2020
c47e30e
double click fixed
FabianLars Feb 24, 2020
0d8d236
More selection actions: (Ctrl +) Shift + Left/Right, Shift + Home/End
FabianLars Feb 25, 2020
1ad8388
really small cleanup
FabianLars Feb 26, 2020
767096b
disable word selection if is_secure == true
FabianLars Feb 27, 2020
731e675
keep cursor inside value boundaries more reliable
FabianLars Mar 13, 2020
b632dce
fixed panic on pasting into non updating input
FabianLars Mar 14, 2020
7cb1452
Convert `mouse::State` into `mouse::Click`
hecrj Mar 24, 2020
e77fa17
Merge branch 'master' into feature/text-selection
hecrj Mar 24, 2020
763f64b
Avoid panic in `Click::is_consecutive`
hecrj Mar 24, 2020
6b89dd7
Improve `text_input::cursor` API
hecrj Mar 24, 2020
28382a4
Move `Value` to its own module
hecrj Mar 24, 2020
6c47a40
Create `text_input::Editor` to hold editing logic
hecrj Mar 24, 2020
735d9f0
Fix edge case in `Editor::backspace`
hecrj Mar 24, 2020
857d65c
Write documentation for `text_input::Cursor`
hecrj Mar 24, 2020
6791c0b
Remove commented code in `text_input`
hecrj Mar 24, 2020
5e6970b
Improve docs of `text_input::State::cursor`
hecrj Mar 24, 2020
d6914d7
Rename `is_pressed` to `is_dragging` in `text_input`
hecrj Mar 24, 2020
b30ddf9
Change selection color in `styling` example
hecrj Mar 24, 2020
30f0234
Implement `Renderer::find_cursor_position`
hecrj Mar 25, 2020
cb32326
Fix edge cases when inserting text in `Editor`
hecrj Mar 25, 2020
bc10ca5
Remove unnecessary borrows in `Editor`
hecrj Mar 25, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions examples/styling/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,10 @@ mod style {
fn value_color(&self) -> Color {
Color::WHITE
}

fn selection_color(&self) -> Color {
Color::BLACK
}
}

pub struct Button;
Expand Down
Loading