File tree 1 file changed +16
-2
lines changed
1 file changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -39,10 +39,24 @@ if (process.argv.indexOf('--disable-acceleration') !== -1)
39
39
40
40
// Configure context menu for text fields
41
41
contextMenu ( {
42
- showCopyImage : false ,
42
+ showCopyImage : true ,
43
+ showSaveImage : true ,
44
+ showSaveImageAs : true ,
43
45
showLookUpSelection : false ,
44
46
showSearchWithGoogle : false ,
45
- showCopyLink : false
47
+ showCopyLink : false ,
48
+ showSelectAll : true ,
49
+ append : ( defaultActions , params , browserWindow ) => [
50
+ {
51
+ label : 'Paste and Match Style' ,
52
+ // Only show this item when there's a text in the clipboard
53
+ visible : clipboard . availableFormats ( ) . includes ( 'text/plain' ) ,
54
+ click : ( ) => {
55
+ // Execute the paste command in the focused window
56
+ browserWindow . webContents . pasteAndMatchStyle ( ) ;
57
+ }
58
+ }
59
+ ]
46
60
} ) ;
47
61
48
62
const __DEV__ = process . env . DRAWIO_ENV === 'dev'
You can’t perform that action at this time.
0 commit comments