fix: #371 wrong paste behavior

This commit is contained in:
Jocs 2018-06-20 19:37:56 +08:00
parent 553bb6c1f7
commit d7315f7a19
4 changed files with 7 additions and 18 deletions

View File

@ -1,6 +1,6 @@
import selection from '../selection'
import { tokenizer } from '../parser/parse'
import { conflict, isMetaKey } from '../utils'
import { conflict } from '../utils'
import { getTextContent } from '../utils/domManipulate'
import { CLASS_OR_ID, EVENT_KEYS, DEFAULT_TURNDOWN_CONFIG } from '../config'
import { beginRules } from '../parser/rules'
@ -302,9 +302,9 @@ const updateCtrl = ContentState => {
// bugfix: #67 problem 1
if (block && block.icon) return event.preventDefault()
if (isMetaKey(event)) {
return
}
// if (isMetaKey(event)) {
// return
// }
if (event.type === 'keyup' && (event.key === EVENT_KEYS.ArrowUp || event.key === EVENT_KEYS.ArrowDown) && floatBox.show) {
return

View File

@ -23,7 +23,7 @@
.ag-popper-arrow {
width: 15px;
height: 15px;
background: #fff;
background: inherit;
border: 1px solid #ebeef5;
display: inline-block;
position: absolute;

View File

@ -1,8 +1,3 @@
:root {
--side-bar-bg-color: #fafafa;
--control-text-color: #777;
}
@include-when-export url(https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,700,400&subset=latin,latin-ext);
@font-face {
@ -92,8 +87,7 @@ body {
border: 1px solid #606266;
}
.ag-table-picker::before {
background: #606266;
[x-placement] > .ag-popper-arrow {
border: 1px solid #606266;
border-right: none;
border-bottom: none;
@ -112,7 +106,7 @@ body {
background: rgba(0, 0, 0, .9);
}
body>*:first-child {
body > *:first-child {
margin-top: 0 !important;
}

View File

@ -1,8 +1,3 @@
:root {
--side-bar-bg-color: #fafafa;
--control-text-color: #777;
}
@include-when-export url(https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,700,400&subset=latin,latin-ext);
@font-face {