From 466b81b6c24fc1aa4d519bbef134a834f223de20 Mon Sep 17 00:00:00 2001 From: John Scipione Date: Thu, 16 Aug 2018 12:42:45 -0700 Subject: [PATCH] Window: Max-Zoom windows with Shift+Ctrl+Alt+Z Since hrev52136 holding Shift while clicking the zoom button will ignore the Deskbar and resize the window to take whole screen area (the original behavior). It'd be nice if the keyboard shortcut for zooming - Ctrl+Alt+Z recognized an additionally held Shift in the same way. Add shortcut to window. Fixes #14365 Change-Id: I919ff2c3e8c41e022f8c675ea631daf18ff41eb3 Reviewed-on: https://review.haiku-os.org/470 Reviewed-by: waddlesplash --- src/kits/interface/Window.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/kits/interface/Window.cpp b/src/kits/interface/Window.cpp index 32dc5b4edb..89afdff9b7 100644 --- a/src/kits/interface/Window.cpp +++ b/src/kits/interface/Window.cpp @@ -2922,6 +2922,8 @@ BWindow::_InitData(BRect frame, const char* title, window_look look, new BMessage(_MINIMIZE_), NULL); AddShortcut('Z', B_COMMAND_KEY | B_CONTROL_KEY, new BMessage(_ZOOM_), NULL); + AddShortcut('Z', B_SHIFT_KEY | B_COMMAND_KEY | B_CONTROL_KEY, + new BMessage(_ZOOM_), NULL); AddShortcut('H', B_COMMAND_KEY | B_CONTROL_KEY, new BMessage(B_HIDE_APPLICATION), NULL); AddShortcut('F', B_COMMAND_KEY | B_CONTROL_KEY,