src/vs/workbench/contrib/webview/electron-browser/webviewIgnoreMenuShortcutsManager.ts/WebviewIgnoreMenuShortcutsManager/add
class WebviewIgnoreMenuShortcutsManager:	public add(webview: WebviewTag): IDisposable {
		this._webviews.add(webview);

		const disposables = new DisposableStore();

		if (this.shouldToggleMenuShortcutsEnablement) {
			this.setIgnoreMenuShortcutsForWebview(webview, true);
		}

		disposables.add(addDisposableListener(webview, 'ipc-message', (event) => {
			switch (event.channel) {
				case WebviewMessageChannels.didFocus:
					this.setIgnoreMenuShortcuts(true);
					break;

				case WebviewMessageChannels.didBlur:
					this.setIgnoreMenuShortcuts(false);
					return;
			}
		}));

		return toDisposable(() => {
			disposables.dispose();
			this._webviews.delete(webview);
		});
	}