mirror of
https://github.com/marktext/marktext.git
synced 2025-05-02 03:11:29 +08:00
fix: #371 wrong paste behavior
This commit is contained in:
parent
553bb6c1f7
commit
d7315f7a19
@ -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
|
||||
|
@ -23,7 +23,7 @@
|
||||
.ag-popper-arrow {
|
||||
width: 15px;
|
||||
height: 15px;
|
||||
background: #fff;
|
||||
background: inherit;
|
||||
border: 1px solid #ebeef5;
|
||||
display: inline-block;
|
||||
position: absolute;
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user