2015-10-17 23:49:24 +02:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
var Backbone = require('backbone'),
|
2016-02-28 18:18:11 +01:00
|
|
|
Launcher = require('../../comp/launcher'),
|
2015-10-17 23:49:24 +02:00
|
|
|
FeatureDetector = require('../../util/feature-detector');
|
|
|
|
|
|
|
|
var SettingsShortcutsView = Backbone.View.extend({
|
2015-12-16 22:50:45 +01:00
|
|
|
template: require('templates/settings/settings-shortcuts.hbs'),
|
2015-10-17 23:49:24 +02:00
|
|
|
|
|
|
|
render: function() {
|
|
|
|
this.renderTemplate({
|
|
|
|
cmd: FeatureDetector.actionShortcutSymbol(true),
|
2016-02-28 18:13:23 +01:00
|
|
|
alt: FeatureDetector.altShortcutSymbol(true),
|
|
|
|
global: FeatureDetector.globalShortcutSymbol(true),
|
2016-02-28 18:18:11 +01:00
|
|
|
globalIsLarge: FeatureDetector.globalShortcutIsLarge(),
|
2016-04-10 09:02:32 +02:00
|
|
|
globalShortcutsSupported: !!Launcher,
|
|
|
|
autoTypeSupported: !!Launcher
|
2015-10-17 23:49:24 +02:00
|
|
|
});
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
module.exports = SettingsShortcutsView;
|