Close Workspaces window with ESC

As discussed on the ML [1].
Try making the Workspaces window really big, hide window tab and border,
assign CTL + ^ to the Workspaces applet. Now you can quickly summon the
applet with CTRL + ^ and equally quickly dismiss it with ESC.

[1] http://www.freelists.org/post/haiku-development/Close-Workspaces-applet-with-ESC
This commit is contained in:
Humdinger 2016-03-06 08:41:11 +01:00
parent db9f2c2776
commit 5f73d5000d

View File

@ -675,7 +675,8 @@ WorkspacesWindow::WorkspacesWindow(WorkspacesSettings *settings)
:
BWindow(settings->WindowFrame(), B_TRANSLATE_SYSTEM_NAME("Workspaces"),
B_TITLED_WINDOW_LOOK, B_NORMAL_WINDOW_FEEL,
B_AVOID_FRONT | B_WILL_ACCEPT_FIRST_CLICK, B_ALL_WORKSPACES),
B_AVOID_FRONT | B_WILL_ACCEPT_FIRST_CLICK | B_CLOSE_ON_ESCAPE,
B_ALL_WORKSPACES),
fSettings(settings),
fAutoRaising(false),
fSwitchOnWheel(false)