mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Make textinput handle actual key values. Don't restrict character values to a single byte.
This commit is contained in:
parent
04ce86c08c
commit
6496d73210
12 changed files with 123 additions and 72 deletions
|
@ -401,7 +401,7 @@ fn test_clipboard_paste() {
|
|||
SelectionDirection::None);
|
||||
assert_eq!(textinput.get_content(), "defg");
|
||||
assert_eq!(textinput.edit_point.index, 0);
|
||||
textinput.handle_keydown_aux(Key::V, MODIFIERS);
|
||||
textinput.handle_keydown_aux(Some('v'), Key::V, MODIFIERS);
|
||||
assert_eq!(textinput.get_content(), "abcdefg");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue