Moved some event logic from QtControl to QtTextBox.