1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 17:56:25 +00:00

hot fix: Wrong behavior with Japanese IME keyboard

This commit is contained in:
Dick Choi
2016-10-18 13:42:10 +09:00
parent ac65a3c86e
commit 8f1c198406
2 changed files with 3 additions and 1 deletions

View File

@@ -50,7 +50,7 @@ export default class CodeEditor extends React.Component {
tabSize: this.props.indentSize,
indentWithTabs: this.props.indentType !== 'space',
keyMap: 'sublime',
inputStyle: 'contenteditable',
inputStyle: 'textarea',
extraKeys: {
Tab: function (cm) {
if (cm.somethingSelected()) cm.indentSelection('add')

View File

@@ -92,6 +92,8 @@ body[data-theme="dark"]
font-family inherit !important
line-height 1.4em
height 100%
.CodeMirror > div > textarea
margin-bottom -1em
.CodeMirror-focused .CodeMirror-selected
background #B1D7FE
.CodeMirror-line::selection, .CodeMirror-line > span::selection, .CodeMirror-line > span > span::selection