TUI rendering mostly working

This commit is contained in:
Evan Almloff committed 2023-02-01 14:36:56 -06:00
1 parent 39a3db68bd
commit 71a0bdf71d
8 files changed
+20 -44

No files matched your search

+2 -1
View File
@@ -688,7 +688,8 @@ impl RinkInputHandler {
for (event, datas) in hm {
for node in dom.get_listening_sorted(event) {
for data in &datas {
if node.get::<Focused>().unwrap().0 {
let focused = node.get::<Focused>();
if focused.is_some() && focused.unwrap().0 {
if let Some(id) = node.mounted_id() {
resolved_events.push(Event {
name: event,