jellyfin-web/dashboard-ui/bower_components/emby-webcomponents/voice/commands/togglecommands.js

20 lines
439 B
JavaScript
Raw Normal View History

2016-07-06 12:25:58 -07:00
define(['inputManager'], function (inputManager) {
2016-02-16 23:58:07 -07:00
2016-07-06 13:16:56 -07:00
function toggleDisplayMirror() {
return function () {
inputManager.trigger('toggledisplaymirror');
};
}
2016-02-16 23:58:07 -07:00
return function (result) {
2016-07-06 13:16:56 -07:00
2016-02-16 23:58:07 -07:00
switch (result.item.deviceid) {
case 'displaymirroring':
2016-07-06 13:16:56 -07:00
return toggleDisplayMirror();
2016-02-16 23:58:07 -07:00
break;
default:
return;
}
}
2016-07-06 13:16:56 -07:00
2016-02-16 23:58:07 -07:00
});