Cocoa: fix window focus lost when opening combobox
authorRichard Moe Gustavsen <richard.gustavsen@digia.com>
Tue, 23 Oct 2012 09:33:47 +0000 (11:33 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Mon, 12 Nov 2012 16:38:06 +0000 (17:38 +0100)
commit6b61e97063fcd2abf7b61b01f6686cadf818eab3
treeb5a5ffe47fc519eab56a083a93a852a6cd2db267
parent64da20405a8928ea1f322e51ad6cb76fdf7cacc4
Cocoa: fix window focus lost when opening combobox

In cocoa, saying that a panel accepts key events, will make it receive
key events, but also show it as the active window on screen. The former
we dont really have to care about, since Qt will take care of forwarding
events to the popup for us anyway, even when they target another window.
So the only reason to actually let a panel become key window, is when
we want it to become active. And for popups, we only want this to happend
for Tool windows.

Change-Id: Ic4e5058307c514cbe30174d2a2d4ca0f41c8f71f
QTBUG: 26598
Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
src/plugins/platforms/cocoa/qcocoawindow.mm