1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-04-03 20:32:07 -04:00

notifications: Add Left/Right Keyboard Nav to Current/History tabs

This commit is contained in:
purian23
2026-02-10 20:51:13 -05:00
parent a337585b00
commit 9c4f4cbd0d
2 changed files with 37 additions and 0 deletions

View File

@@ -149,6 +149,23 @@ DankPopout {
event.accepted = true;
return;
}
if (event.key === Qt.Key_Left) {
if (notificationHeader.currentTab > 0) {
notificationHeader.currentTab = 0;
event.accepted = true;
}
return;
}
if (event.key === Qt.Key_Right) {
if (notificationHeader.currentTab === 0 && SettingsData.notificationHistoryEnabled) {
notificationHeader.currentTab = 1;
event.accepted = true;
}
return;
}
if (notificationHeader.currentTab === 1) {
historyList.handleKey(event);
return;