How to use the native-keymap.onDidChangeKeyboardLayout function in native-keymap

To help you get started, we’ve selected a few native-keymap examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github microsoft / vscode / src / vs / code / electron-main / keyboard.ts View on Github external
public onDidChangeKeyboardLayout(callback: () => void): IDisposable {
		if (!this._registered) {
			this._registered = true;

			nativeKeymap.onDidChangeKeyboardLayout(() => {
				this._emitter.fire();
			});
		}
		return this._emitter.event(callback);
	}
}

native-keymap

Get OS key mapping

MIT
Latest version published 5 months ago

Package Health Score

77 / 100
Full package analysis

Similar packages