From 52c924d88c14dc5e2b4be97f5870c167632ff7f7 Mon Sep 17 00:00:00 2001 From: Aleteoryx Date: Mon, 22 Sep 2025 21:41:47 -0400 Subject: [PATCH] don't put garbage in the input box when switching focus --- ntalk.tcl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ntalk.tcl b/ntalk.tcl index 45a6dc85119810f973ec05d7bd06ae218ab83178..35bcbaefc10dc21187fa3c66e109e5c54e8debcd 100755 --- a/ntalk.tcl +++ b/ntalk.tcl @@ -659,7 +659,7 @@ bind . {} .buffer configure -state disabled bind .buffer { set k %A - if {$k != {}} { + if {[string is alnum $k] || ($k != "\t" && [string is space $k])} { focus .foot.input .foot.input insert insert $k }