Skip to content

Commit

Permalink
Merge pull request #38 from Ravichandra-C/addKeyboardShortcut
Browse files Browse the repository at this point in the history
Added keyboard shortcut (F8) to show/hide the graph pane
  • Loading branch information
treymo committed Sep 28, 2021
2 parents 7fd3a69 + 7bf462b commit c1e0ec5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import joplin from 'api';
import * as joplinData from './data';
import { registerSettings } from './settings';
import { ToolbarButtonLocation } from 'api/types';
import { MenuItemLocation, ToolbarButtonLocation } from 'api/types';
var deepEqual = require('deep-equal')

/**
Expand Down Expand Up @@ -127,7 +127,7 @@ joplin.plugins.register({
},
});
await joplin.views.toolbarButtons.create('graphUIButton', 'showHideGraphUI', ToolbarButtonLocation.NoteToolbar);

await joplin.views.menuItems.create('showOrHideGraphMenuItem','showHideGraphUI',MenuItemLocation.View,{accelerator:"F8"});
// Build Panel
await panels.addScript(view, './d3.min.js');
await panels.addScript(view, './webview.css');
Expand Down

0 comments on commit c1e0ec5

Please sign in to comment.