mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-10-16 16:24:00 -04:00
feat(settings): switch panes with Alt+Arrow keys
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import QtQuick
|
||||
import qs.Common
|
||||
|
||||
FocusScope {
|
||||
id: root
|
||||
@@ -135,6 +136,15 @@ FocusScope {
|
||||
else
|
||||
focusSidebar();
|
||||
event.accepted = true;
|
||||
} else if (mods === Qt.AltModifier && (event.key === Qt.Key_Left || event.key === Qt.Key_Right)) {
|
||||
const forward = (event.key === Qt.Key_Right) !== I18n.isRtl;
|
||||
if (forward !== (activePane === "sidebar"))
|
||||
return;
|
||||
if (forward)
|
||||
focusContent();
|
||||
else
|
||||
focusSidebar();
|
||||
event.accepted = true;
|
||||
} else if (event.key === Qt.Key_F && mods === Qt.ControlModifier) {
|
||||
focusSearch();
|
||||
event.accepted = true;
|
||||
|
||||
Reference in New Issue
Block a user