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
7de0aa79
Commit
7de0aa79
authored
Dec 06, 2016
by
Alexey Golubev
Browse files
Options
Browse Files
Download
Plain Diff
Merge tag 'v4.2.1' into develop
v4.2.1
parents
f6e353d4
0b595593
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
53 additions
and
21 deletions
+53
-21
cell/view/CellEditorView.js
cell/view/CellEditorView.js
+2
-3
common/text_input.js
common/text_input.js
+39
-6
slide/Drawing/DrawingDocument.js
slide/Drawing/DrawingDocument.js
+2
-2
slide/Drawing/HtmlPage.js
slide/Drawing/HtmlPage.js
+4
-4
word/Drawing/HtmlPage.js
word/Drawing/HtmlPage.js
+6
-6
No files found.
cell/view/CellEditorView.js
View file @
7de0aa79
...
...
@@ -2606,9 +2606,8 @@
/** @param event {MouseEvent} */
CellEditor
.
prototype
.
_onMouseDown
=
function
(
event
)
{
if
(
AscCommon
.
g_inputContext
)
{
AscCommon
.
g_inputContext
.
externalChangeFocus
();
}
if
(
AscCommon
.
g_inputContext
&&
AscCommon
.
g_inputContext
.
externalChangeFocus
())
return
;
var
pos
;
var
coord
=
this
.
_getCoordinates
(
event
);
...
...
common/text_input.js
View file @
7de0aa79
...
...
@@ -810,8 +810,20 @@
if
(
AscCommon
.
AscBrowser
.
isIE
)
{
oEvent
.
preventDefault
=
function
()
{
Object
.
defineProperty
(
this
,
"
defaultPrevented
"
,
{
get
:
function
()
{
return
true
;}});
oEvent
.
preventDefault
=
function
()
{
try
{
Object
.
defineProperty
(
this
,
"
defaultPrevented
"
,
{
get
:
function
()
{
return
true
;
}
});
}
catch
(
err
)
{
}
};
}
...
...
@@ -1411,6 +1423,8 @@
if
(
_locale
==
undefined
||
_locale
==
null
)
_locale
=
""
;
ti_console_log_ms
(
"
msCheckComposition:
"
+
type
);
var
isNoUseCtx
=
((
_locale
.
indexOf
(
"
zh-Hant
"
)
==
0
)
||
(
_locale
.
indexOf
(
"
zh-Hans
"
)
==
0
))
?
true
:
false
;
// этот код нарушает китайский ввод (написать много, и начать выбирать мышкой!!! по короткими частям)
// но пока так. иначе проблемы на корейском
...
...
@@ -1428,6 +1442,7 @@
{
// не натуральный end!!!
type
=
c_oCompositionState
.
process
;
ti_console_log_ms
(
"
msCheckComposition: end => process
"
);
}
}
}
...
...
@@ -1445,7 +1460,13 @@
if
(
_value
.
indexOf
(
this
.
ieNonCompositionPrefixConfirm
)
!=
0
)
{
// по идее нужно стереть, но мы пока просто заканчиваем ввод
ti_console_log_ms
(
"
msCheckComposition: externalEndCompositeInput
"
);
ti_console_log_ms
(
"
[
"
+
_value
+
"
], prefix:
"
+
this
.
ieNonCompositionPrefixConfirm
);
this
.
externalEndCompositeInput
();
if
(
type
==
c_oCompositionState
.
end
)
{
this
.
apiCompositeEnd
();
}
return
;
}
}
...
...
@@ -1489,6 +1510,8 @@
if
(
type
==
c_oCompositionState
.
end
)
{
ti_console_log_ms
(
"
msCheckComposition: end!!!
"
);
this
.
apiCompositeEnd
();
this
.
unlockTarget
();
...
...
@@ -1618,11 +1641,21 @@
externalChangeFocus
:
function
()
{
if
(
this
.
compositionState
==
c_oCompositionState
.
process
)
if
(
this
.
compositionState
==
c_oCompositionState
.
end
)
return
false
;
setTimeout
(
function
()
{
this
.
apiCompositeEnd
();
this
.
clear
();
var
_input
=
window
[
'
AscCommon
'
].
g_inputContext
;
if
(
_input
.
compositionState
==
c_oCompositionState
.
process
)
{
//_input.apiCompositeEnd();
_input
.
clear
();
}
},
10
);
return
true
;
}
};
...
...
slide/Drawing/DrawingDocument.js
View file @
7de0aa79
...
...
@@ -3232,8 +3232,8 @@ function CThumbnailsManager()
else
e
.
returnValue
=
false
;
if
(
AscCommon
.
g_inputContext
)
AscCommon
.
g_inputContext
.
externalChangeFocus
()
;
if
(
AscCommon
.
g_inputContext
&&
AscCommon
.
g_inputContext
.
externalChangeFocus
()
)
return
;
var
control
=
oThis
.
m_oWordControl
.
m_oThumbnails
.
HtmlElement
;
if
(
global_mouseEvent
.
IsLocked
==
true
&&
global_mouseEvent
.
Sender
!=
control
)
...
...
slide/Drawing/HtmlPage.js
View file @
7de0aa79
...
...
@@ -1353,8 +1353,8 @@ function CEditorPage(api)
if
(
false
===
oThis
.
m_oApi
.
bInit_word_control
)
return
;
if
(
AscCommon
.
g_inputContext
)
AscCommon
.
g_inputContext
.
externalChangeFocus
()
;
if
(
AscCommon
.
g_inputContext
&&
AscCommon
.
g_inputContext
.
externalChangeFocus
()
)
return
;
var
_isCatch
=
false
;
...
...
@@ -1586,8 +1586,8 @@ function CEditorPage(api)
e
.
returnValue
=
false
;
}
if
(
AscCommon
.
g_inputContext
)
AscCommon
.
g_inputContext
.
externalChangeFocus
()
;
if
(
AscCommon
.
g_inputContext
&&
AscCommon
.
g_inputContext
.
externalChangeFocus
()
)
return
;
oWordControl
.
Thumbnails
.
SetFocusElement
(
FOCUS_OBJECT_MAIN
);
if
(
oWordControl
.
DemonstrationManager
.
Mode
)
...
...
word/Drawing/HtmlPage.js
View file @
7de0aa79
...
...
@@ -811,8 +811,8 @@ function CEditorPage(api)
this
.
TextBoxBackground
.
HtmlElement
[
"
ontouchstart
"
]
=
function
(
e
)
{
if
(
AscCommon
.
g_inputContext
)
AscCommon
.
g_inputContext
.
externalChangeFocus
()
;
if
(
AscCommon
.
g_inputContext
&&
AscCommon
.
g_inputContext
.
externalChangeFocus
()
)
return
;
if
(
!
oThis
.
IsFocus
)
oThis
.
m_oApi
.
asc_enableKeyEvents
(
true
);
...
...
@@ -856,8 +856,8 @@ function CEditorPage(api)
{
this
.
TextBoxBackground
.
HtmlElement
[
"
onmousedown
"
]
=
function
(
e
)
{
if
(
AscCommon
.
g_inputContext
)
AscCommon
.
g_inputContext
.
externalChangeFocus
()
;
if
(
AscCommon
.
g_inputContext
&&
AscCommon
.
g_inputContext
.
externalChangeFocus
()
)
return
;
if
(
!
oThis
.
MobileTouchManager
)
return
false
;
...
...
@@ -1620,8 +1620,8 @@ function CEditorPage(api)
e
.
returnValue
=
false
;
}
if
(
AscCommon
.
g_inputContext
)
AscCommon
.
g_inputContext
.
externalChangeFocus
()
;
if
(
AscCommon
.
g_inputContext
&&
AscCommon
.
g_inputContext
.
externalChangeFocus
()
)
return
;
var
oWordControl
=
oThis
;
...
...
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