Skip to content

Commit aca159c

Browse files
committed
QPA: close float window by alt+w
1 parent afd29dd commit aca159c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

platforms/qhaikuplatform/haiku/qhaikuwindow.cpp

+3-2
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,9 @@ QtHaikuWindow::QtHaikuWindow(QHaikuWindow *qwindow,
138138
#endif
139139
AddChild(fView);
140140
Qt::WindowType type = static_cast<Qt::WindowType>(int(qwindow->window()->flags() & Qt::WindowType_Mask));
141-
bool dialog = ((type == Qt::Dialog) || (type == Qt::Sheet) || (type == Qt::MSWindowsFixedSizeDialogHint));
142-
if (!dialog)
141+
bool dialog = ((type == Qt::Dialog) || (type == Qt::Sheet) || (type == Qt::MSWindowsFixedSizeDialogHint));
142+
bool tool = (type == Qt::Tool || type == Qt::Drawer);
143+
if (!dialog && !tool)
143144
RemoveShortcut('W', B_COMMAND_KEY);
144145
AddShortcut('Q', B_COMMAND_KEY, new BMessage(kQuitApplication));
145146
}

0 commit comments

Comments
 (0)