Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sdkjs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boris Kocherov
sdkjs
Commits
942fbc58
Commit
942fbc58
authored
Sep 05, 2016
by
Alexey Golubev
Browse files
Options
Browse Files
Download
Plain Diff
Merge tag 'v4.1.0' into develop
v4.1.0
parents
4e891f19
035dde9d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
0 deletions
+36
-0
cell/view/CellEditorView.js
cell/view/CellEditorView.js
+36
-0
No files found.
cell/view/CellEditorView.js
View file @
942fbc58
...
...
@@ -2228,6 +2228,10 @@
return
false
;
case
8
:
// "backspace"
if
(
!
this
.
enableKeyEvents
)
{
break
;
}
if
(
window
[
'
IS_NATIVE_EDITOR
'
])
{
t
.
_removeChars
(
ctrlKey
?
kPrevWord
:
kPrevChar
);
}
else
{
...
...
@@ -2242,6 +2246,10 @@
return
false
;
case
46
:
// "del"
if
(
!
this
.
enableKeyEvents
)
{
break
;
}
if
(
!
t
.
hasFocus
)
{
t
.
setFocus
(
true
);
}
...
...
@@ -2254,6 +2262,10 @@
return
true
;
case
37
:
// "left"
if
(
!
this
.
enableKeyEvents
)
{
break
;
}
event
.
stopPropagation
();
event
.
preventDefault
();
if
(
!
t
.
hasFocus
)
{
...
...
@@ -2267,6 +2279,10 @@
return
false
;
case
39
:
// "right"
if
(
!
this
.
enableKeyEvents
)
{
break
;
}
event
.
stopPropagation
();
event
.
preventDefault
();
if
(
!
t
.
hasFocus
)
{
...
...
@@ -2280,6 +2296,10 @@
return
false
;
case
38
:
// "up"
if
(
!
this
.
enableKeyEvents
)
{
break
;
}
event
.
stopPropagation
();
event
.
preventDefault
();
if
(
!
t
.
hasFocus
)
{
...
...
@@ -2292,6 +2312,10 @@
return
false
;
case
40
:
// "down"
if
(
!
this
.
enableKeyEvents
)
{
break
;
}
event
.
stopPropagation
();
event
.
preventDefault
();
if
(
!
t
.
hasFocus
)
{
...
...
@@ -2304,6 +2328,10 @@
return
false
;
case
35
:
// "end"
if
(
!
this
.
enableKeyEvents
)
{
break
;
}
// Отключим стандартную обработку браузера нажатия end
event
.
stopPropagation
();
event
.
preventDefault
();
...
...
@@ -2318,6 +2346,10 @@
return
false
;
case
36
:
// "home"
if
(
!
this
.
enableKeyEvents
)
{
break
;
}
// Отключим стандартную обработку браузера нажатия home
event
.
stopPropagation
();
event
.
preventDefault
();
...
...
@@ -2439,6 +2471,10 @@
break
;
case
89
:
// ctrl + y
case
90
:
// ctrl + z
if
(
!
this
.
enableKeyEvents
)
{
break
;
}
if
(
ctrlKey
)
{
event
.
stopPropagation
();
event
.
preventDefault
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment