Ubuntu 14.04. When an alarm window is currently displayed, bring up a New Alarm dialog (for any type of alarm). Typing in any text field doesn't work - keyboard input is ignored. This does not happen in Debian Jessie (KAlarm version 2.10.11-ak). Reproducible: Always
When the fault happens, keyboard input is directed to the alarm window instead of the dialog. This can be seen by typing Alt-C for example, which is the key combination to close the alarm window but which should only work when the alarm window has focus.
When the fault happens, QApplication::focusWidget() (which returns the application widget which has keyboard focus) returns the QTextEdit widget, as expected. However, QApplication::activeWindow() (which returns the application top-level window which has keyboard focus) returns MessageWin, i.e. the alarm window. The dialog or main window should be the active window.
The Unity desktop doesn't handle the transfer of keyboard focus between an application's top-level windows correctly, which was the reason for this bug. KAlarm now detects if it's running on Unity, and if so takes special measures to set keyboard focus in the appropriate window (New Alarm dialog or alarm message window). Note that there was no obvious way to make it function exactly like the normal window manager focus transfer, but it works adequately for the purpose. Fixed in 4.14 branch (commit 08e5d90f74a01434e23259c01ec3fae38a30f4bf).
Fixed also in 15.08 branch (commit 8e3b57e2d5c78c56a62ad9fc0c459d10e9141019).