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
89ce4483
Commit
89ce4483
authored
Aug 18, 2016
by
Oleg Korshul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
text input focus change (mouse).
parent
1e9e57a2
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
2 deletions
+23
-2
common/text_input.js
common/text_input.js
+9
-0
slide/Drawing/DrawingDocument.js
slide/Drawing/DrawingDocument.js
+3
-0
slide/Drawing/HtmlPage.js
slide/Drawing/HtmlPage.js
+6
-0
word/Drawing/HtmlPage.js
word/Drawing/HtmlPage.js
+5
-2
No files found.
common/text_input.js
View file @
89ce4483
...
...
@@ -1481,6 +1481,15 @@
externalEndCompositeInput
:
function
()
{
this
.
clear
();
},
externalChangeFocus
:
function
()
{
if
(
this
.
compositionState
==
c_oCompositionState
.
process
)
{
this
.
Api
.
End_CompositeInput
();
this
.
clear
();
}
}
};
...
...
slide/Drawing/DrawingDocument.js
View file @
89ce4483
...
...
@@ -3232,6 +3232,9 @@ function CThumbnailsManager()
else
e
.
returnValue
=
false
;
if
(
AscCommon
.
g_inputContext
)
AscCommon
.
g_inputContext
.
externalChangeFocus
();
var
control
=
oThis
.
m_oWordControl
.
m_oThumbnails
.
HtmlElement
;
if
(
global_mouseEvent
.
IsLocked
==
true
&&
global_mouseEvent
.
Sender
!=
control
)
{
...
...
slide/Drawing/HtmlPage.js
View file @
89ce4483
...
...
@@ -1352,6 +1352,9 @@ function CEditorPage(api)
if
(
false
===
oThis
.
m_oApi
.
bInit_word_control
)
return
;
if
(
AscCommon
.
g_inputContext
)
AscCommon
.
g_inputContext
.
externalChangeFocus
();
var
_isCatch
=
false
;
var
downClick
=
global_mouseEvent
.
ClickCount
;
...
...
@@ -1582,6 +1585,9 @@ function CEditorPage(api)
e
.
returnValue
=
false
;
}
if
(
AscCommon
.
g_inputContext
)
AscCommon
.
g_inputContext
.
externalChangeFocus
();
oWordControl
.
Thumbnails
.
SetFocusElement
(
FOCUS_OBJECT_MAIN
);
if
(
oWordControl
.
DemonstrationManager
.
Mode
)
return
false
;
...
...
word/Drawing/HtmlPage.js
View file @
89ce4483
...
...
@@ -1703,7 +1703,7 @@ function CEditorPage(api)
this
.
onMouseDown
=
function
(
e
,
isTouch
)
{
console
.
log
(
"
down:
"
+
isTouch
+
"
,
"
+
AscCommon
.
isTouch
);
//
console.log("down: " + isTouch + ", " + AscCommon.isTouch);
if
(
false
===
oThis
.
m_oApi
.
bInit_word_control
||
(
AscCommon
.
isTouch
&&
undefined
===
isTouch
))
return
;
...
...
@@ -1715,6 +1715,9 @@ function CEditorPage(api)
e
.
returnValue
=
false
;
}
if
(
AscCommon
.
g_inputContext
)
AscCommon
.
g_inputContext
.
externalChangeFocus
();
var
oWordControl
=
oThis
;
if
(
this
.
id
==
"
id_viewer
"
&&
oThis
.
m_oOverlay
.
HtmlElement
.
style
.
display
==
"
block
"
)
...
...
@@ -1889,7 +1892,7 @@ function CEditorPage(api)
};
this
.
onMouseUp
=
function
(
e
,
bIsWindow
,
isTouch
)
{
console
.
log
(
"
up:
"
+
isTouch
+
"
,
"
+
AscCommon
.
isTouch
);
//
console.log("up: " + isTouch + ", " + AscCommon.isTouch);
if
(
false
===
oThis
.
m_oApi
.
bInit_word_control
||
(
AscCommon
.
isTouch
&&
undefined
===
isTouch
))
return
;
//if (true == global_mouseEvent.IsLocked)
...
...
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