mirror of
https://github.com/emilk/egui.git
synced 2026-08-29 12:50:04 -04:00
Rename functions in Context to avoid confusion (#7773)
It's important to avoid confusion after * https://github.com/emilk/egui/pull/7770
This commit is contained in:
@@ -196,11 +196,13 @@ pub(crate) fn on_keydown(event: web_sys::KeyboardEvent, runner: &mut AppRunner)
|
||||
|
||||
let prevent_default = should_prevent_default_for_key(runner, &modifiers, egui_key);
|
||||
|
||||
// log::debug!(
|
||||
// "On keydown {:?} {egui_key:?}, has_focus: {has_focus}, egui_wants_keyboard: {}, prevent_default: {prevent_default}",
|
||||
// event.key().as_str(),
|
||||
// runner.egui_ctx().wants_keyboard_input()
|
||||
// );
|
||||
if false {
|
||||
log::debug!(
|
||||
"On keydown {:?} {egui_key:?}, has_focus: {has_focus}, egui_wants_keyboard: {}, prevent_default: {prevent_default}",
|
||||
event.key().as_str(),
|
||||
runner.egui_ctx().egui_wants_keyboard_input()
|
||||
);
|
||||
}
|
||||
|
||||
if prevent_default {
|
||||
event.prevent_default();
|
||||
|
||||
Reference in New Issue
Block a user