@seafile/sdoc-editor 3.0.260 → 3.0.261
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -202,7 +202,7 @@ var EditableArticle = function EditableArticle(_ref) {
|
|
|
202
202
|
return;
|
|
203
203
|
}
|
|
204
204
|
var isModClick = (0, _commonUtils.isMac)() ? event.metaKey : event.ctrlKey;
|
|
205
|
-
if (event.key === 'ArrowLeft' && !isModClick) {
|
|
205
|
+
if (event.key === 'ArrowLeft' && !isModClick && !event.shiftKey) {
|
|
206
206
|
event.preventDefault();
|
|
207
207
|
_slate.Transforms.move(editor, {
|
|
208
208
|
unit: 'offset',
|
|
@@ -227,7 +227,7 @@ var EditableArticle = function EditableArticle(_ref) {
|
|
|
227
227
|
scrollRef.current.scroll(0, Math.max(0, scrollTop - domHeight));
|
|
228
228
|
return;
|
|
229
229
|
}
|
|
230
|
-
if (event.key === 'ArrowRight' && !isModClick) {
|
|
230
|
+
if (event.key === 'ArrowRight' && !isModClick && !event.shiftKey) {
|
|
231
231
|
event.preventDefault();
|
|
232
232
|
_slate.Transforms.move(editor, {
|
|
233
233
|
unit: 'offset'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seafile/sdoc-editor",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.261",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "jest",
|
|
@@ -70,5 +70,5 @@
|
|
|
70
70
|
"publishConfig": {
|
|
71
71
|
"access": "public"
|
|
72
72
|
},
|
|
73
|
-
"gitHead": "
|
|
73
|
+
"gitHead": "8212c41339e0560f473ca2b4698dc119c42ddb13"
|
|
74
74
|
}
|