We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
KeyPress
text_editor
1 parent fd7580f commit d4b8f48Copy full SHA for d4b8f48
1 file changed
widget/src/text_editor.rs
@@ -1017,20 +1017,17 @@ impl<Message> Update<Message> {
1017
Status::Active
1018
};
1019
1020
+ let key_press = KeyPress {
1021
+ key,
1022
+ modifiers,
1023
+ text,
1024
+ status,
1025
+ };
1026
+
1027
if let Some(key_binding) = key_binding {
- key_binding(KeyPress {
- key,
- modifiers,
- text,
- status,
- })
1028
+ key_binding(key_press)
1029
} else {
- Binding::from_key_press(KeyPress {
1030
1031
1032
1033
+ Binding::from_key_press(key_press)
1034
}
1035
.map(Self::Binding)
1036
0 commit comments