mirror of
https://github.com/BoostIo/Boostnote
synced 2025-12-13 01:36:22 +00:00
Merge upstream into master
This commit is contained in:
@@ -248,11 +248,7 @@ export default class MarkdownPreview extends React.Component {
|
||||
handleContextMenu (event) {
|
||||
const menu = buildMarkdownPreviewContextMenu(this, event)
|
||||
if (menu != null) {
|
||||
<<<<<<< HEAD
|
||||
setTimeout(() => menu.popup(remote.getCurrentWindow()), 30)
|
||||
=======
|
||||
menu.popup(remote.getCurrentWindow())
|
||||
>>>>>>> upstream/master
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -81,17 +81,8 @@ const buildMarkdownPreviewContextMenu = function (markdownPreview, event) {
|
||||
|
||||
// Default context menu inclusions
|
||||
const template = [{
|
||||
<<<<<<< HEAD
|
||||
role: 'cut'
|
||||
}, {
|
||||
role: 'copy'
|
||||
}, {
|
||||
role: 'paste'
|
||||
}, {
|
||||
=======
|
||||
role: 'copy'
|
||||
}, {
|
||||
>>>>>>> upstream/master
|
||||
role: 'selectall'
|
||||
}]
|
||||
|
||||
|
||||
@@ -4,13 +4,8 @@ jest.mock('electron', () => {
|
||||
})
|
||||
|
||||
const spellcheck = require('browser/lib/spellcheck')
|
||||
<<<<<<< HEAD
|
||||
const buildEditorContextMenu = require('browser/lib/contextMenuBuilder')
|
||||
const buildMarkdownPreviewContextMenu = require('browser/lib/contextMenuBuilder')
|
||||
=======
|
||||
const buildEditorContextMenu = require('browser/lib/contextMenuBuilder').buildEditorContextMenu
|
||||
const buildMarkdownPreviewContextMenu = require('browser/lib/contextMenuBuilder').buildMarkdownPreviewContextMenu
|
||||
>>>>>>> upstream/master
|
||||
|
||||
beforeEach(() => {
|
||||
menuBuilderParameter = null
|
||||
|
||||
Reference in New Issue
Block a user