diff --git a/CHANGELOG.md b/CHANGELOG.md index c8322c2c239..3579807e1df 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ ### Enhancements * **InfluxDB**: Changed multi query encoding to work with InfluxDB 0.11 & 0.12, closes [#4533](https://github.com/grafana/grafana/issues/4533) +* **Timepicker**: Add arrows and shortcuts for moving back and forth in current dashboard, closes [#119](https://github.com/grafana/grafana/issues/119) ### Bug fixes * **Postgres**: Fixed page render crash when using postgres, fixes [#4558](https://github.com/grafana/grafana/issues/4558) diff --git a/latest.json b/latest.json index 48595c735e4..bd317e071ed 100644 --- a/latest.json +++ b/latest.json @@ -1,4 +1,4 @@ { "stable": "2.6.0", - "testing": "3.0.0-beta2" + "testing": "3.0.0-beta3" } diff --git a/public/app/features/dashboard/keybindings.js b/public/app/features/dashboard/keybindings.js index aea3a476a49..b07dd2fd848 100644 --- a/public/app/features/dashboard/keybindings.js +++ b/public/app/features/dashboard/keybindings.js @@ -60,6 +60,14 @@ function(angular, $) { scope.appEvent('zoom-out', evt); }, { inputDisabled: true }); + keyboardManager.bind('left', function(evt) { + scope.appEvent('shift-time-backward', evt); + }, { inputDisabled: true }); + + keyboardManager.bind('right', function(evt) { + scope.appEvent('shift-time-forward', evt); + }, { inputDisabled: true }); + keyboardManager.bind('ctrl+e', function(evt) { scope.appEvent('export-dashboard', evt); }, { inputDisabled: true }); diff --git a/public/app/features/dashboard/timepicker/timepicker.html b/public/app/features/dashboard/timepicker/timepicker.html index 609b5905983..49e2dac27c0 100644 --- a/public/app/features/dashboard/timepicker/timepicker.html +++ b/public/app/features/dashboard/timepicker/timepicker.html @@ -1,5 +1,15 @@