mirror of
https://github.com/servo/servo.git
synced 2025-08-04 13:10:20 +01:00
Cleanup textinput, timers
This commit is contained in:
parent
53e155e8ac
commit
ac1b7a3896
2 changed files with 6 additions and 5 deletions
|
@ -292,10 +292,11 @@ impl<T: ClipboardProvider> TextInput<T> {
|
|||
/// Deal with a newline input.
|
||||
pub fn handle_return(&mut self) -> KeyReaction {
|
||||
if !self.multiline {
|
||||
return KeyReaction::TriggerDefaultAction;
|
||||
KeyReaction::TriggerDefaultAction
|
||||
} else {
|
||||
self.insert_char('\n');
|
||||
KeyReaction::DispatchInput
|
||||
}
|
||||
self.insert_char('\n');
|
||||
return KeyReaction::DispatchInput;
|
||||
}
|
||||
|
||||
/// Select all text in the input control.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue