# Set subject on Return or when focus out?
set ::config(chat,set-subject) "focusout" ;# return|focusout
The mechanism you are suggesting is identical to an old one I had which I rejected for the OnReturn one. I still think it is less straightforward than the OnReturn one.
I have kept the Return action as before and added same behaviour on FocusOut:
# Special bindings for setting subject. :OnFocusInSubje ct $chattoken]
bind $wsubject <FocusIn> [list ::Chat:
bind $wsubject <Return> [list ::Chat::SetSubject $chattoken]
switch -- $config( chat,set- subject) { :RevokeSubject $chattoken]
"return" {
bind $wsubject <FocusOut> [list ::Chat:
}
"focusout" {
bind $wsubject <FocusOut> [list ::Chat::SetSubject $chattoken]
}
}
It is config()urable:
# Set subject on Return or when focus out? chat,set- subject) "focusout" ;# return|focusout
set ::config(
The mechanism you are suggesting is identical to an old one I had which I rejected for the OnReturn one. I still think it is less straightforward than the OnReturn one.