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
7915a665
Commit
7915a665
authored
Apr 08, 2016
by
Alexey.Musinov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[mobile] операции с текстом для автофигур
parent
48ef87a3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
5 deletions
+28
-5
cell/native/native.js
cell/native/native.js
+28
-5
No files found.
cell/native/native.js
View file @
7915a665
...
...
@@ -6041,20 +6041,43 @@ function offline_keyboard_down(keys) {
for
(
var
i
=
0
;
i
<
keys
.
length
;
++
i
)
{
var
operationCode
=
keys
[
i
][
0
];
// TODO: commands for text in shape
var
codeKey
=
keys
[
i
][
2
];
if
(
100
==
keys
[
i
][
1
])
{
var
event
=
{
which
:
codeKey
,
keyCode
:
codeKey
,
metaKey
:
false
,
altKey
:
false
,
ctrlKey
:
false
,
shiftKey
:
false
,
preventDefault
:
function
(){}};
if
(
32
===
codeKey
||
8
===
codeKey
||
13
===
codeKey
||
27
==
codeKey
)
{
if
(
6
===
operationCode
)
{
// SELECT_ALL
event
.
keyCode
=
65
;
event
.
ctrlKey
=
true
;
ws
.
objectRender
.
graphicObjectKeyDown
(
event
);
}
else
if
(
3
===
operationCode
)
{
// SELECT
var
content
=
ws
.
objectRender
.
controller
.
getTargetDocContent
();
content
.
Cursor_MoveLeft
(
false
,
true
);
content
.
Cursor_MoveRight
(
true
,
true
);
ws
.
objectRender
.
controller
.
updateSelectionState
();
ws
.
objectRender
.
controller
.
drawingObjects
.
sendGraphicObjectProps
();
}
else
{
ws
.
objectRender
.
graphicObjectKeyPress
(
event
);
}
if
(
27
==
codeKey
)
{
window
.
AscDisableTextSelection
=
true
;
if
(
32
===
codeKey
||
8
===
codeKey
||
13
===
codeKey
||
27
==
codeKey
)
{
ws
.
objectRender
.
graphicObjectKeyDown
(
event
);
}
else
{
ws
.
objectRender
.
graphicObjectKeyPress
(
event
);
}
if
(
27
==
codeKey
)
{
window
.
AscDisableTextSelection
=
true
;
}
}
}
else
if
(
37
===
codeKey
)
// LEFT
...
...
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