notedeck

One damus client to rule them all
git clone git://jb55.com/notedeck
Log | Files | Refs | README | LICENSE

commit d30e4c53eedbac8c3c900f48bf8c2628a0585be4
parent b50bc2e988e2456959036ceb892d9b128acae545
Author: William Casarin <jb55@jb55.com>
Date:   Wed, 16 Apr 2025 23:50:55 -0700

post: fix bug where send shortcut send unfocused inputs

Fixes: https://github.com/damus-io/notedeck/issues/810
Signed-off-by: William Casarin <jb55@jb55.com>

Diffstat:
Mcrates/notedeck_columns/src/ui/note/post.rs | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/crates/notedeck_columns/src/ui/note/post.rs b/crates/notedeck_columns/src/ui/note/post.rs @@ -396,7 +396,9 @@ impl<'a, 'd> PostView<'a, 'd> { (i.modifiers.ctrl || i.modifiers.command) && i.key_pressed(egui::Key::Enter) }); - if post_button_clicked || (!self.draft.buffer.is_empty() && shortcut_pressed) { + if post_button_clicked + || (!self.draft.buffer.is_empty() && shortcut_pressed && self.focused(ui)) + { let output = self.draft.buffer.output(); let new_post = NewPost::new( output.text,