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 @@
...
@@ -2228,6 +2228,10 @@
return
false
;
return
false
;
case
8
:
// "backspace"
case
8
:
// "backspace"
if
(
!
this
.
enableKeyEvents
)
{
break
;
}
if
(
window
[
'
IS_NATIVE_EDITOR
'
])
{
if
(
window
[
'
IS_NATIVE_EDITOR
'
])
{
t
.
_removeChars
(
ctrlKey
?
kPrevWord
:
kPrevChar
);
t
.
_removeChars
(
ctrlKey
?
kPrevWord
:
kPrevChar
);
}
else
{
}
else
{
...
@@ -2242,6 +2246,10 @@
...
@@ -2242,6 +2246,10 @@
return
false
;
return
false
;
case
46
:
// "del"
case
46
:
// "del"
if
(
!
this
.
enableKeyEvents
)
{
break
;
}
if
(
!
t
.
hasFocus
)
{
if
(
!
t
.
hasFocus
)
{
t
.
setFocus
(
true
);
t
.
setFocus
(
true
);
}
}
...
@@ -2254,6 +2262,10 @@
...
@@ -2254,6 +2262,10 @@
return
true
;
return
true
;
case
37
:
// "left"
case
37
:
// "left"
if
(
!
this
.
enableKeyEvents
)
{
break
;
}
event
.
stopPropagation
();
event
.
stopPropagation
();
event
.
preventDefault
();
event
.
preventDefault
();
if
(
!
t
.
hasFocus
)
{
if
(
!
t
.
hasFocus
)
{
...
@@ -2267,6 +2279,10 @@
...
@@ -2267,6 +2279,10 @@
return
false
;
return
false
;
case
39
:
// "right"
case
39
:
// "right"
if
(
!
this
.
enableKeyEvents
)
{
break
;
}
event
.
stopPropagation
();
event
.
stopPropagation
();
event
.
preventDefault
();
event
.
preventDefault
();
if
(
!
t
.
hasFocus
)
{
if
(
!
t
.
hasFocus
)
{
...
@@ -2280,6 +2296,10 @@
...
@@ -2280,6 +2296,10 @@
return
false
;
return
false
;
case
38
:
// "up"
case
38
:
// "up"
if
(
!
this
.
enableKeyEvents
)
{
break
;
}
event
.
stopPropagation
();
event
.
stopPropagation
();
event
.
preventDefault
();
event
.
preventDefault
();
if
(
!
t
.
hasFocus
)
{
if
(
!
t
.
hasFocus
)
{
...
@@ -2292,6 +2312,10 @@
...
@@ -2292,6 +2312,10 @@
return
false
;
return
false
;
case
40
:
// "down"
case
40
:
// "down"
if
(
!
this
.
enableKeyEvents
)
{
break
;
}
event
.
stopPropagation
();
event
.
stopPropagation
();
event
.
preventDefault
();
event
.
preventDefault
();
if
(
!
t
.
hasFocus
)
{
if
(
!
t
.
hasFocus
)
{
...
@@ -2304,6 +2328,10 @@
...
@@ -2304,6 +2328,10 @@
return
false
;
return
false
;
case
35
:
// "end"
case
35
:
// "end"
if
(
!
this
.
enableKeyEvents
)
{
break
;
}
// Отключим стандартную обработку браузера нажатия end
// Отключим стандартную обработку браузера нажатия end
event
.
stopPropagation
();
event
.
stopPropagation
();
event
.
preventDefault
();
event
.
preventDefault
();
...
@@ -2318,6 +2346,10 @@
...
@@ -2318,6 +2346,10 @@
return
false
;
return
false
;
case
36
:
// "home"
case
36
:
// "home"
if
(
!
this
.
enableKeyEvents
)
{
break
;
}
// Отключим стандартную обработку браузера нажатия home
// Отключим стандартную обработку браузера нажатия home
event
.
stopPropagation
();
event
.
stopPropagation
();
event
.
preventDefault
();
event
.
preventDefault
();
...
@@ -2439,6 +2471,10 @@
...
@@ -2439,6 +2471,10 @@
break
;
break
;
case
89
:
// ctrl + y
case
89
:
// ctrl + y
case
90
:
// ctrl + z
case
90
:
// ctrl + z
if
(
!
this
.
enableKeyEvents
)
{
break
;
}
if
(
ctrlKey
)
{
if
(
ctrlKey
)
{
event
.
stopPropagation
();
event
.
stopPropagation
();
event
.
preventDefault
();
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