Scenes: Implement 't a' shortcut (#89619)

This commit is contained in:
kay delaney
2024-06-26 10:10:00 +01:00
committed by GitHub
parent 7b0362b228
commit be2aa9a3a7
3 changed files with 16 additions and 6 deletions

View File

@@ -102,6 +102,7 @@ export function setupKeyboardShortcuts(scene: DashboardScene) {
handleZoomOut(scene);
},
});
keybindings.addBinding({
key: 'ctrl+z',
onTrigger: () => {
@@ -109,6 +110,15 @@ export function setupKeyboardShortcuts(scene: DashboardScene) {
},
});
// Relative -> Absolute time range
keybindings.addBinding({
key: 't a',
onTrigger: () => {
const timePicker = dashboardSceneGraph.getTimePicker(scene);
timePicker?.toAbsolute();
},
});
keybindings.addBinding({
key: 't left',
onTrigger: () => {