mirror of
https://github.com/emilk/egui.git
synced 2026-06-26 14:49:06 -04:00
@@ -179,8 +179,8 @@ impl Keypad {
|
||||
)
|
||||
});
|
||||
|
||||
let mut is_first_show = false;
|
||||
if ctx.wants_keyboard_input() && state.focus != focus {
|
||||
let is_first_show = ctx.wants_keyboard_input() && state.focus != focus;
|
||||
if is_first_show {
|
||||
let y = ctx.style().spacing.interact_size.y * 1.25;
|
||||
state.open = true;
|
||||
state.start_pos = ctx.input(|i| {
|
||||
@@ -189,7 +189,6 @@ impl Keypad {
|
||||
.map_or(pos2(100.0, 100.0), |p| p + vec2(0.0, y))
|
||||
});
|
||||
state.focus = focus;
|
||||
is_first_show = true;
|
||||
}
|
||||
|
||||
if state.close_on_next_frame {
|
||||
|
||||
@@ -11,5 +11,6 @@ fn main() -> std::io::Result<()> {
|
||||
// Do not check `app` on unsupported platforms when check "--all-features" is used in CI.
|
||||
#[cfg(not(target_os = "linux"))]
|
||||
fn main() {
|
||||
#![expect(clippy::print_stdout)]
|
||||
println!("This example only supports Linux.");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user