File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -262,14 +262,20 @@ module.exports = function (ctx) {
262
262
ctx . launchWebUI ( '/files' , { focus : false } )
263
263
} )
264
264
265
+ const popupMenu = ( event ) => {
266
+ // https://github.com/ipfs-shipyard/ipfs-desktop/issues/1762 ¯\_(ツ)_/¯
267
+ if ( event && typeof event . preventDefault === 'function' ) event . preventDefault ( )
268
+
269
+ tray . popUpContextMenu ( )
270
+ }
271
+
265
272
if ( ! IS_MAC ) {
266
273
// Show the context menu on left click on other
267
274
// platforms than macOS.
268
- tray . on ( 'click' , event => {
269
- event . preventDefault ( )
270
- tray . popUpContextMenu ( )
271
- } )
275
+ tray . on ( 'click' , popupMenu )
272
276
}
277
+ tray . on ( 'right-click' , popupMenu )
278
+ tray . on ( 'double-click' , ( ) => ctx . launchWebUI ( '/' ) )
273
279
274
280
const setupMenu = ( ) => {
275
281
menu = buildMenu ( ctx )
You can’t perform that action at this time.
0 commit comments