From 5ff0d61b5246f0c24ef904ada6810fdd5c859d4c Mon Sep 17 00:00:00 2001 From: Calum Lind Date: Sat, 18 Feb 2012 03:37:47 +0000 Subject: [PATCH] Add Webui keymaps for torrents - Ctrl-A (select all) and Delete --- ChangeLog | 3 +++ deluge/ui/web/js/deluge-all/TorrentGrid.js | 17 +++++++++++++++++ 2 files changed, 20 insertions(+) diff --git a/ChangeLog b/ChangeLog index c382e7495..2c0a3c9a4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -31,6 +31,9 @@ * #1936: Fix Referenced before assignment error in json_api * Changes are now applied when clicking OK in Preferences * Added Download,Uploaded,Down Limit, Up Limit & Seeder/Peeds columns + * Add magnet uri support to Add Url + * Add keymaps for torrents - Ctrl-A (select all) and Delete + ==== Console ==== * #1953: Fix flickering on every update diff --git a/deluge/ui/web/js/deluge-all/TorrentGrid.js b/deluge/ui/web/js/deluge-all/TorrentGrid.js index 2c819a5f6..9be56c171 100644 --- a/deluge/ui/web/js/deluge-all/TorrentGrid.js +++ b/deluge/ui/web/js/deluge-all/TorrentGrid.js @@ -254,11 +254,28 @@ ] }, + keys: [{ + key: 'a', + ctrl: true, + stopEvent: true, + handler: function() { + deluge.torrents.getSelectionModel().selectAll(); + } + }, { + key: [46], + stopEvent: true, + handler: function() { + ids = deluge.torrents.getSelectedIds(); + deluge.removeWindow.show(ids); + } + }], + constructor: function(config) { config = Ext.apply({ id: 'torrentGrid', store: new Ext.data.JsonStore(this.meta), columns: this.columns, + keys: this.keys, region: 'center', cls: 'deluge-torrents', stripeRows: true,