(js) Support backspace AND delete keys

This commit is contained in:
Francis Lachapelle committed 2017-06-14 13:38:40 -04:00
1 parent 67b9ef0b8b
commit 7464c2e680
7 files changed
+56 -43

No files matched your search

@@ -88,11 +88,13 @@
description: l('Add previous item to selection'),
callback: _addPreviousCardToSelection
}));
keys.push(sgHotkeys.createHotkey({
key: 'backspace',
description: l('Delete selected card or address book'),
callback: confirmDeleteSelectedCards
}));
_.forEach(['backspace', 'delete'], function(hotkey) {
keys.push(sgHotkeys.createHotkey({
key: hotkey,
description: l('Delete selected card or address book'),
callback: confirmDeleteSelectedCards
}));
});
// Register the hotkeys
_.forEach(keys, function(key) {