1 | "use strict";
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 | Object.defineProperty(exports, "__esModule", { value: true });
|
18 | const inversify_1 = require("inversify");
|
19 | const keyboard_layout_provider_1 = require("../../common/keyboard/keyboard-layout-provider");
|
20 | const ws_connection_provider_1 = require("../../browser/messaging/ws-connection-provider");
|
21 | const electron_keyboard_layout_change_notifier_1 = require("./electron-keyboard-layout-change-notifier");
|
22 | exports.default = new inversify_1.ContainerModule((bind, unbind, isBound, rebind) => {
|
23 | bind(keyboard_layout_provider_1.KeyboardLayoutProvider).toDynamicValue(ctx => ws_connection_provider_1.WebSocketConnectionProvider.createLocalProxy(ctx.container, keyboard_layout_provider_1.keyboardPath)).inSingletonScope();
|
24 | bind(electron_keyboard_layout_change_notifier_1.ElectronKeyboardLayoutChangeNotifier).toSelf().inSingletonScope();
|
25 | bind(keyboard_layout_provider_1.KeyboardLayoutChangeNotifier).toService(electron_keyboard_layout_change_notifier_1.ElectronKeyboardLayoutChangeNotifier);
|
26 | });
|
27 |
|
\ | No newline at end of file |