Fix: DragValue correctly reports gained_focus

This commit is contained in:
Emil Ernerfeldt 2022-02-19 11:05:02 +01:00
parent 989a6d202f
commit 0d21405855

View file

@ -180,7 +180,7 @@ impl<'a> Widget for DragValue<'a> {
emath::format_with_decimals_in_range(value, auto_decimals..=max_decimals)
};
let kb_edit_id = ui.auto_id_with("edit");
let kb_edit_id = ui.next_auto_id();
let is_kb_editing = ui.memory().has_focus(kb_edit_id);
let mut response = if is_kb_editing {