From 5a30b08b14a1587b39a85e60c006cc701b4711fd Mon Sep 17 00:00:00 2001 From: Mitsuhiro Tanda Date: Mon, 13 Feb 2017 22:27:12 +0900 Subject: [PATCH] add keyboard shotcuts for collapse/expand rows --- public/app/core/services/keybindingSrv.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/public/app/core/services/keybindingSrv.ts b/public/app/core/services/keybindingSrv.ts index 7cff30ee903..c382d751188 100644 --- a/public/app/core/services/keybindingSrv.ts +++ b/public/app/core/services/keybindingSrv.ts @@ -187,6 +187,20 @@ export class KeybindingSrv { } }); + // collapse all rows + this.bind('r C', () => { + _.each(dashboard.rows, function(row) { + row.collapse = true; + }); + }); + + // expand all rows + this.bind('r E', () => { + _.each(dashboard.rows, function(row) { + row.collapse = false; + }); + }); + this.bind('d r', () => { scope.broadcastRefresh(); });