mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Scenes: Implement 't a' shortcut (#89619)
This commit is contained in:
@@ -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: () => {
|
||||
|
||||
Reference in New Issue
Block a user