Bug fix: We need to check whether we have *keyboard* focus, not just logical focus (since we might have logical focus even though we don't have keyboard one).