* Do not send mouse events and emulated up/down keys to programs when
read-only mode is enabledled.
* Set the currentTerminalDisplay before sending key events, like in
keyPressEvent.
* Set the currentTerminalDisplay before sending key events, like in keyPressEvent.* wheelEvent code is restructured a bit to easily separate code not
* wheelEvent code is restructured a bit to easily separate code not allowed in read-only mode.