mirror of
https://github.com/emilk/egui.git
synced 2026-08-30 05:10:03 -04:00
Rename "kb_focus" to just "focus" everywhere
This commit is contained in:
@@ -125,7 +125,7 @@ impl Widgets {
|
||||
ui.horizontal(|ui| {
|
||||
ui.label("Single line text input:");
|
||||
let response = ui.text_edit_singleline(&mut self.single_line_text_input);
|
||||
if response.lost_kb_focus() {
|
||||
if response.lost_focus() {
|
||||
// The user pressed enter.
|
||||
}
|
||||
});
|
||||
|
||||
@@ -113,7 +113,7 @@ fn ui_url(ui: &mut egui::Ui, frame: &mut epi::Frame<'_>, url: &mut String) -> Op
|
||||
|
||||
ui.horizontal(|ui| {
|
||||
ui.label("URL:");
|
||||
trigger_fetch |= ui.text_edit_singleline(url).lost_kb_focus();
|
||||
trigger_fetch |= ui.text_edit_singleline(url).lost_focus();
|
||||
trigger_fetch |= ui.button("GET").clicked();
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user