Skip to content

Commit

Permalink
Merge pull request #18 from oslabs-beta/kevin-rightclick-context-menu
Browse files Browse the repository at this point in the history
implemented right click for context-menu
  • Loading branch information
NManem authored Aug 7, 2023
2 parents fee7e9a + c7110c1 commit f9be35b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ const url = require('url');
const fs = require('fs');
const log = require('electron-log');



// proto-parser func for parsing .proto files
const protoParserFunc = require('./main_process/protoParser.js');

Expand All @@ -64,6 +66,10 @@ require('./main_process/main_trpcController.js')();
// require mac touchbar
const { touchBar } = require('./main_process/main_touchbar.js');

// right-click menu for cut / copy / paste / Inspect Element
const contextMenu = require('electron-context-menu')
contextMenu()

// configure logging
// autoUpdater.logger = log;
// autoUpdater.logger.transports.file.level = 'info';
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@
"dexie": "^3.2.2",
"dexie-react-hooks": "^1.1.1",
"dotenv": "^16.0.0",
"electron-context-menu": "^3.6.1",
"electron-devtools-installer": "^3.2.0",
"electron-log": "^4.4.6",
"electron-updater": "^5.3.0",
Expand Down

0 comments on commit f9be35b

Please sign in to comment.