(cm, e)
| 7642 | // textarea (making it as unobtrusive as possible) to let the |
| 7643 | // right-click take effect on it. |
| 7644 | function onContextMenu(cm, e) { |
| 7645 | if (eventInWidget(cm.display, e) || contextMenuInGutter(cm, e)) { return } |
| 7646 | if (signalDOMEvent(cm, e, "contextmenu")) { return } |
| 7647 | if (!captureRightClick) { cm.display.input.onContextMenu(e); } |
| 7648 | } |
| 7649 | |
| 7650 | function contextMenuInGutter(cm, e) { |
| 7651 | if (!hasHandler(cm, "gutterContextMenu")) { return false } |
no test coverage detected