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
e25eb8f3
Commit
e25eb8f3
authored
Apr 05, 2016
by
Alexey.Musinov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[mobile] селект текста
parent
a3bbd6e1
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
4 deletions
+14
-4
cell/native/Graphics.js
cell/native/Graphics.js
+7
-0
cell/native/native.js
cell/native/native.js
+7
-4
No files found.
cell/native/Graphics.js
View file @
e25eb8f3
...
...
@@ -565,6 +565,13 @@ CGraphics.prototype =
this
.
TextureFillTransformScaleY
=
1
/
this
.
m_oCoordTransform
.
sy
;
this
.
LastFontOriginInfo
=
{
Name
:
""
,
Replace
:
null
};
this
.
m_oCurFont
=
{
Name
:
""
,
FontSize
:
10
,
Bold
:
false
,
Italic
:
false
};
/*
if (this.IsThumbnail)
...
...
cell/native/native.js
View file @
e25eb8f3
...
...
@@ -3690,6 +3690,8 @@ function OfflineEditor () {
var
oldrange
=
this
.
visibleRange
;
this
.
visibleRange
=
range
;
//console.log('range:' + ' c1:' + c1 + ' r1:' + r1 + ' c2:' + c2 +' r2:' + r2);
var
cellsLeft_Local
=
this
.
cellsLeft
;
var
cellsTop_Local
=
this
.
cellsTop
;
...
...
@@ -5813,9 +5815,6 @@ function offline_mouse_down(x, y, pin, isViewerMode, isFormulaEditMode, isRangeR
}
}
//var content = ws.objectRender.controller.curState.majorObject.getDocContent();
//content.Cursor_MoveToEndPos();
return
{
id
:
graphicsInfo
.
id
,
ischart
:
ischart
,
'
textselect
'
:(
null
!==
ws
.
objectRender
.
controller
.
selection
.
textSelection
)};
}
...
...
@@ -6048,11 +6047,15 @@ function offline_keyboard_down(keys) {
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
)
{
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
wb
.
_onChangeSelection
(
true
,
-
1
,
0
,
false
,
false
,
undefined
);
...
...
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