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.
1 parent f86c146 commit c4d0afbCopy full SHA for c4d0afb
demo/src/apps/editor.rs
@@ -84,7 +84,9 @@ impl Editor {
84
.is_some_and(|obj| !obj.contains_key(&state.new_key_input));
85
86
ui.add_enabled_ui(valid_key, |ui| {
87
- if ui.small_button("✅").clicked() || enter_was_pressed_with_focus {
+ if ui.small_button("✅").clicked()
88
+ || (valid_key && enter_was_pressed_with_focus)
89
+ {
90
edit_events.push(EditEvent::SaveObjectKeyEdit);
91
}
92
});
0 commit comments