import ContextMenuListener from 'electron-spellchecker/src/context-menu-listener.js'
ContextMenuListener
ContextMenuListener will listen to the given window / WebView control and invoke a handler function. This function usually will immediately turn around and invoke {{showPopupMenu}} from {{ContextMenuBuilder}}.
Static Method Summary
Static Public Methods | ||
public static |
Override the default logger for this class. |
Constructor Summary
Public Constructor | ||
public |
constructor(handler: Function, windowOrWebView: BrowserWindow | WebView, contextMenuEvent: Observable<Object>) Constructs a ContextMenuListener and wires up the events it needs to fire the callback. |
Member Summary
Public Members | ||
public |
disp: * |
Method Summary
Public Methods | ||
public |
dispose() Disconnect the events that we connected in the Constructor |