How did you impliment this?

For example would it disable the ability to send messages via an addon? (SendChatMessage()) I'm curious because if it doesn't kill that feature, it would be very useful to me as the most common "break" in my config is the chat command opening but not closing... so I end up pressing 222222222222 trying to cast a spell and then later when I figure it out there's a gajillion 2's in the chat box.