Skip to content

Commit

Permalink
feat(context): Add more context menus.
Browse files Browse the repository at this point in the history
Fixes #597
  • Loading branch information
joshuef authored and manavbp committed Jun 27, 2019
1 parent 6466f90 commit e553646
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 1 deletion.
46 changes: 46 additions & 0 deletions app/components/Tab/Tab.tsx
Expand Up @@ -105,6 +105,35 @@ export class Tab extends Component<TabProps, TabState> {
contextMenu( {
window: webview,
append: ( params ) => [
{
label: 'Reload',
accelerator: 'CommandOrControl+R',
click() {
webview.reload();
}
},
{
label: 'Hard Reload',
// accelerator: 'CommandOrControl+Shift+R',
click() {
webview.reloadIgnoringCache();
}
},
{
label: 'Forward',
accelerator: 'CommandOrControl + ]',
click() {
webview.goForward();
}
},
{
label: 'Backward',
accelerator: 'CommandOrControl + [',
click() {
webview.goBack();
}
},
{ type: 'separator' },
{
label: 'Open Link in New Tab.',
visible: params.linkURL && params.linkURL.length > 0,
Expand All @@ -115,6 +144,23 @@ export class Tab extends Component<TabProps, TabState> {
isActiveTab: true
} );
}
},
{ type: 'separator' },
{
label: 'Cut',
selector: 'cut:'
},
{
label: 'Copy',
selector: 'copy:'
},
{
label: 'Paste',
selector: 'paste:'
},
{
label: 'Select All',
selector: 'selectAll:'
}
],
showCopyImageAddress: true,
Expand Down
1 change: 0 additions & 1 deletion app/extensions/safe/auth-web-app/store.ts
Expand Up @@ -32,7 +32,6 @@ export const history = createHashHistory();

const router = routerMiddleware( history );

console.log( 'HERE WE HAVE::::', thunk, router, logger, promise );
const enhancer = compose(
applyMiddleware( thunk, router, logger, promise ),
window.devToolsExtension
Expand Down

0 comments on commit e553646

Please sign in to comment.