Added hotkeys cheatsheet.

Added some hotkeys (not mapped yet).
Fixed logging search style.
This commit is contained in:
Gunther Brunner
2014-07-03 22:24:40 +09:00
parent 6715bff634
commit 01aefb441a
4 changed files with 62 additions and 26 deletions

View File

@@ -1,7 +1,9 @@
var ControlPanesHotkeys = require('./control-panes-hotkeys')
module.exports =
function ControlPanesController($scope, $http, gettext, $routeParams,
$timeout, $location, DeviceService, GroupService, ControlService,
StorageService, FatalMessageService, hotkeys) {
StorageService, FatalMessageService, hotkeys, $filter) {
var sharedTabs = [
{
@@ -181,20 +183,6 @@ module.exports =
}, true)
function switchDeviceCharset() {
$scope.control.keyPress('switch_charset')
console.log('Switching charset')
}
hotkeys.add({
combo: 'shift+space',
description: 'Selects next IME in the device',
allowIn: ['textarea'],
callback: function (event) {
event.preventDefault()
switchDeviceCharset()
}
})
ControlPanesHotkeys($scope, hotkeys, $filter, gettext)
}