feat: add custom context menus for editor and chat input
Security Scan and Upload / Security & DefectDojo Upload (pull_request) Successful in 1m41s
CI / Lint & Test (pull_request) Successful in 17m53s
CI / Build Linux (pull_request) Successful in 24m31s
CI / Build Windows (cross-compile) (pull_request) Successful in 32m54s

- Add EditorContextMenu for code editor with clipboard operations
  (Undo, Redo, Cut, Copy, Paste, Select All)
- Add TextInputContextMenu for chat input textarea
- Add global context menu prevention to disable default webview menu
- Add viewport boundary detection to keep menus within window bounds
- Install @codemirror/commands for undo/redo functionality
This commit is contained in:
2026-01-28 17:25:26 -08:00
committed by Naomi Carrigan
parent 38b591a084
commit f889002266
8 changed files with 564 additions and 7 deletions
+7 -4
View File
@@ -8,6 +8,9 @@ importers:
.:
dependencies:
'@codemirror/commands':
specifier: 6.8.1
version: 6.8.1
'@codemirror/lang-angular':
specifier: ^0.1.4
version: 0.1.4
@@ -239,8 +242,8 @@ packages:
'@codemirror/autocomplete@6.20.0':
resolution: {integrity: sha512-bOwvTOIJcG5FVo5gUUupiwYh8MioPLQ4UcqbcRf7UQ98X90tCa9E1kZ3Z7tqwpZxYyOvh1YTYbmZE9RTfTp5hg==}
'@codemirror/commands@6.10.1':
resolution: {integrity: sha512-uWDWFypNdQmz2y1LaNJzK7fL7TYKLeUAU0npEC685OKTF3KcQ2Vu3klIM78D7I6wGhktme0lh3CuQLv0ZCrD9Q==}
'@codemirror/commands@6.8.1':
resolution: {integrity: sha512-KlGVYufHMQzxbdQONiLyGQDUW0itrLZwq3CcY7xpv9ZLRHqzkBSoteocBHtMCoY7/Ci4xhzSrToIeLg7FxHuaw==}
'@codemirror/lang-angular@0.1.4':
resolution: {integrity: sha512-oap+gsltb/fzdlTQWD6BFF4bSLKcDnlxDsLdePiJpCVNKWXSTAbiiQeYI3UmES+BLAdkmIC1WjyztC1pi/bX4g==}
@@ -2184,7 +2187,7 @@ snapshots:
'@codemirror/view': 6.39.11
'@lezer/common': 1.5.0
'@codemirror/commands@6.10.1':
'@codemirror/commands@6.8.1':
dependencies:
'@codemirror/language': 6.12.1
'@codemirror/state': 6.5.4
@@ -3214,7 +3217,7 @@ snapshots:
codemirror@6.0.2:
dependencies:
'@codemirror/autocomplete': 6.20.0
'@codemirror/commands': 6.10.1
'@codemirror/commands': 6.8.1
'@codemirror/language': 6.12.1
'@codemirror/lint': 6.9.3
'@codemirror/search': 6.6.0