mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 16:13:24 +02:00
Added hotkeys cheatsheet.
Added some hotkeys (not mapped yet). Fixed logging search style.
This commit is contained in:
@@ -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)
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user