Actions
Feature #3232
openImplement Ctrl-A 'Select All' on DVR Grids
Status:
New
Priority:
Normal
Assignee:
-
Category:
User Interface
Target version:
-
Start date:
2015-10-30
Due date:
% Done:
0%
Estimated time:
Description
... so you can select a batch of failed recordings in one go, for example, versus click-shiftclick. It just seems... right to have it, especially if you're disabling recordings so they fail gracefully instead of re-scheduling.
I have to show my utter ignorance of JavaScript and extJS here... I've looked at the code, and it should 'just' be a case of putting something like this in:
keys: {
key: 'a',
ctrl: true,
stopEvent: true,
handler: function() {
<whateverthiselementis>.getSelectionModel().selectAll();
}
}
... but this doesn't trigger if you define it at the panel level (e.g. where you define the Upcoming Recordings in dvr.js:
tvheadend.idnode_grid(panel, {
url: 'api/dvr/entry',
gridURL: 'api/dvr/entry/grid_upcoming',
titleS: _('Upcoming Recording'),
titleP: _('Upcoming / Current Recordings'),
keys: {
key: 'a',
ctrl: true,
handler: function() {
console.log("##Ctrl-A pressed"); //debugging only - doesn't trigger here (wrong scope?)
....
It only triggers if you put it into the function that creates the panel, e.g. in dvr.js
tvheadend.dvr = function(panel, index) {
var p = new Ext.TabPanel({
activeTab: 0,
autoScroll: true,
title: _('Digital Video Recorder'),
iconCls: 'dvr',
keys: {
key: 'a',
ctrl: true,
handler: function() {
console.log("##Ctrl-A pressed"); //debugging only - triggers here
...
... however, at that point I can't find the element ID for the relevant grid so nothing happens.
Sorry, a really half-baked thought, I know!
Actions