(cm, e)
| 4083 | // textarea (making it as unobtrusive as possible) to let the |
| 4084 | // right-click take effect on it. |
| 4085 | function onContextMenu(cm, e) { |
| 4086 | if (eventInWidget(cm.display, e) || contextMenuInGutter(cm, e)) return; |
| 4087 | cm.display.input.onContextMenu(e); |
| 4088 | } |
| 4089 | |
| 4090 | function contextMenuInGutter(cm, e) { |
| 4091 | if (!hasHandler(cm, "gutterContextMenu")) return false; |
no test coverage detected