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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user