no false trigger of opening project item
This commit is contained in:
parent
d5c5ab9dba
commit
2237384ca2
2
Cargo.lock
generated
2
Cargo.lock
generated
|
@ -587,7 +587,7 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "calcifer"
|
name = "calcifer"
|
||||||
version = "1.1.0"
|
version = "1.2.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"arboard",
|
"arboard",
|
||||||
"eframe",
|
"eframe",
|
||||||
|
|
|
@ -176,7 +176,7 @@ impl eframe::App for Calcifer {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ctx.input(|i| i.key_pressed(egui::Key::Enter))
|
if ctx.input(|i| i.key_pressed(egui::Key::Enter)) && ctx.memory(|m| m.focus() == None)
|
||||||
&& self.tabs[self.selected_tab].language == PROJECT_EXTENSION
|
&& self.tabs[self.selected_tab].language == PROJECT_EXTENSION
|
||||||
{
|
{
|
||||||
self.project_content.item_window.visible = true;
|
self.project_content.item_window.visible = true;
|
||||||
|
|
Loading…
Reference in a new issue