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
bd22dd67
Commit
bd22dd67
authored
Dec 05, 2016
by
Oleg Korshul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
input bugs
parent
ed86c2f5
Changes
5
Hide 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 @
bd22dd67
...
@@ -2601,9 +2601,8 @@
...
@@ -2601,9 +2601,8 @@
/** @param event {MouseEvent} */
/** @param event {MouseEvent} */
CellEditor
.
prototype
.
_onMouseDown
=
function
(
event
)
{
CellEditor
.
prototype
.
_onMouseDown
=
function
(
event
)
{
if
(
AscCommon
.
g_inputContext
)
{
if
(
AscCommon
.
g_inputContext
&&
AscCommon
.
g_inputContext
.
externalChangeFocus
())
AscCommon
.
g_inputContext
.
externalChangeFocus
();
return
;
}
var
pos
;
var
pos
;
var
coord
=
this
.
_getCoordinates
(
event
);
var
coord
=
this
.
_getCoordinates
(
event
);
...
...
common/text_input.js
View file @
bd22dd67
...
@@ -810,8 +810,20 @@
...
@@ -810,8 +810,20 @@
if
(
AscCommon
.
AscBrowser
.
isIE
)
if
(
AscCommon
.
AscBrowser
.
isIE
)
{
{
oEvent
.
preventDefault
=
function
()
{
oEvent
.
preventDefault
=
function
()
Object
.
defineProperty
(
this
,
"
defaultPrevented
"
,
{
get
:
function
()
{
return
true
;}});
{
try
{
Object
.
defineProperty
(
this
,
"
defaultPrevented
"
,
{
get
:
function
()
{
return
true
;
}
});
}
catch
(
err
)
{
}
};
};
}
}
...
@@ -1411,6 +1423,8 @@
...
@@ -1411,6 +1423,8 @@
if
(
_locale
==
undefined
||
_locale
==
null
)
if
(
_locale
==
undefined
||
_locale
==
null
)
_locale
=
""
;
_locale
=
""
;
ti_console_log_ms
(
"
msCheckComposition:
"
+
type
);
var
isNoUseCtx
=
((
_locale
.
indexOf
(
"
zh-Hant
"
)
==
0
)
||
(
_locale
.
indexOf
(
"
zh-Hans
"
)
==
0
))
?
true
:
false
;
var
isNoUseCtx
=
((
_locale
.
indexOf
(
"
zh-Hant
"
)
==
0
)
||
(
_locale
.
indexOf
(
"
zh-Hans
"
)
==
0
))
?
true
:
false
;
// этот код нарушает китайский ввод (написать много, и начать выбирать мышкой!!! по короткими частям)
// этот код нарушает китайский ввод (написать много, и начать выбирать мышкой!!! по короткими частям)
// но пока так. иначе проблемы на корейском
// но пока так. иначе проблемы на корейском
...
@@ -1428,6 +1442,7 @@
...
@@ -1428,6 +1442,7 @@
{
{
// не натуральный end!!!
// не натуральный end!!!
type
=
c_oCompositionState
.
process
;
type
=
c_oCompositionState
.
process
;
ti_console_log_ms
(
"
msCheckComposition: end => process
"
);
}
}
}
}
}
}
...
@@ -1445,7 +1460,13 @@
...
@@ -1445,7 +1460,13 @@
if
(
_value
.
indexOf
(
this
.
ieNonCompositionPrefixConfirm
)
!=
0
)
if
(
_value
.
indexOf
(
this
.
ieNonCompositionPrefixConfirm
)
!=
0
)
{
{
// по идее нужно стереть, но мы пока просто заканчиваем ввод
// по идее нужно стереть, но мы пока просто заканчиваем ввод
ti_console_log_ms
(
"
msCheckComposition: externalEndCompositeInput
"
);
ti_console_log_ms
(
"
[
"
+
_value
+
"
], prefix:
"
+
this
.
ieNonCompositionPrefixConfirm
);
this
.
externalEndCompositeInput
();
this
.
externalEndCompositeInput
();
if
(
type
==
c_oCompositionState
.
end
)
{
this
.
apiCompositeEnd
();
}
return
;
return
;
}
}
}
}
...
@@ -1489,6 +1510,8 @@
...
@@ -1489,6 +1510,8 @@
if
(
type
==
c_oCompositionState
.
end
)
if
(
type
==
c_oCompositionState
.
end
)
{
{
ti_console_log_ms
(
"
msCheckComposition: end!!!
"
);
this
.
apiCompositeEnd
();
this
.
apiCompositeEnd
();
this
.
unlockTarget
();
this
.
unlockTarget
();
...
@@ -1618,11 +1641,21 @@
...
@@ -1618,11 +1641,21 @@
externalChangeFocus
:
function
()
externalChangeFocus
:
function
()
{
{
if
(
this
.
compositionState
==
c_oCompositionState
.
process
)
if
(
this
.
compositionState
==
c_oCompositionState
.
end
)
return
false
;
setTimeout
(
function
()
{
{
this
.
apiCompositeEnd
();
var
_input
=
window
[
'
AscCommon
'
].
g_inputContext
;
this
.
clear
();
if
(
_input
.
compositionState
==
c_oCompositionState
.
process
)
}
{
//_input.apiCompositeEnd();
_input
.
clear
();
}
},
10
);
return
true
;
}
}
};
};
...
...
slide/Drawing/DrawingDocument.js
View file @
bd22dd67
...
@@ -3232,8 +3232,8 @@ function CThumbnailsManager()
...
@@ -3232,8 +3232,8 @@ function CThumbnailsManager()
else
else
e
.
returnValue
=
false
;
e
.
returnValue
=
false
;
if
(
AscCommon
.
g_inputContext
)
if
(
AscCommon
.
g_inputContext
&&
AscCommon
.
g_inputContext
.
externalChangeFocus
()
)
AscCommon
.
g_inputContext
.
externalChangeFocus
()
;
return
;
var
control
=
oThis
.
m_oWordControl
.
m_oThumbnails
.
HtmlElement
;
var
control
=
oThis
.
m_oWordControl
.
m_oThumbnails
.
HtmlElement
;
if
(
global_mouseEvent
.
IsLocked
==
true
&&
global_mouseEvent
.
Sender
!=
control
)
if
(
global_mouseEvent
.
IsLocked
==
true
&&
global_mouseEvent
.
Sender
!=
control
)
...
...
slide/Drawing/HtmlPage.js
View file @
bd22dd67
...
@@ -1353,8 +1353,8 @@ function CEditorPage(api)
...
@@ -1353,8 +1353,8 @@ function CEditorPage(api)
if
(
false
===
oThis
.
m_oApi
.
bInit_word_control
)
if
(
false
===
oThis
.
m_oApi
.
bInit_word_control
)
return
;
return
;
if
(
AscCommon
.
g_inputContext
)
if
(
AscCommon
.
g_inputContext
&&
AscCommon
.
g_inputContext
.
externalChangeFocus
()
)
AscCommon
.
g_inputContext
.
externalChangeFocus
()
;
return
;
var
_isCatch
=
false
;
var
_isCatch
=
false
;
...
@@ -1586,8 +1586,8 @@ function CEditorPage(api)
...
@@ -1586,8 +1586,8 @@ function CEditorPage(api)
e
.
returnValue
=
false
;
e
.
returnValue
=
false
;
}
}
if
(
AscCommon
.
g_inputContext
)
if
(
AscCommon
.
g_inputContext
&&
AscCommon
.
g_inputContext
.
externalChangeFocus
()
)
AscCommon
.
g_inputContext
.
externalChangeFocus
()
;
return
;
oWordControl
.
Thumbnails
.
SetFocusElement
(
FOCUS_OBJECT_MAIN
);
oWordControl
.
Thumbnails
.
SetFocusElement
(
FOCUS_OBJECT_MAIN
);
if
(
oWordControl
.
DemonstrationManager
.
Mode
)
if
(
oWordControl
.
DemonstrationManager
.
Mode
)
...
...
word/Drawing/HtmlPage.js
View file @
bd22dd67
...
@@ -808,8 +808,8 @@ function CEditorPage(api)
...
@@ -808,8 +808,8 @@ function CEditorPage(api)
this
.
TextBoxBackground
.
HtmlElement
[
"
ontouchstart
"
]
=
function
(
e
)
this
.
TextBoxBackground
.
HtmlElement
[
"
ontouchstart
"
]
=
function
(
e
)
{
{
if
(
AscCommon
.
g_inputContext
)
if
(
AscCommon
.
g_inputContext
&&
AscCommon
.
g_inputContext
.
externalChangeFocus
()
)
AscCommon
.
g_inputContext
.
externalChangeFocus
()
;
return
;
if
(
!
oThis
.
IsFocus
)
if
(
!
oThis
.
IsFocus
)
oThis
.
m_oApi
.
asc_enableKeyEvents
(
true
);
oThis
.
m_oApi
.
asc_enableKeyEvents
(
true
);
...
@@ -844,8 +844,8 @@ function CEditorPage(api)
...
@@ -844,8 +844,8 @@ function CEditorPage(api)
{
{
this
.
TextBoxBackground
.
HtmlElement
[
"
onmousedown
"
]
=
function
(
e
)
this
.
TextBoxBackground
.
HtmlElement
[
"
onmousedown
"
]
=
function
(
e
)
{
{
if
(
AscCommon
.
g_inputContext
)
if
(
AscCommon
.
g_inputContext
&&
AscCommon
.
g_inputContext
.
externalChangeFocus
()
)
AscCommon
.
g_inputContext
.
externalChangeFocus
()
;
return
;
oThis
.
IsUpdateOverlayOnlyEndReturn
=
true
;
oThis
.
IsUpdateOverlayOnlyEndReturn
=
true
;
oThis
.
StartUpdateOverlay
();
oThis
.
StartUpdateOverlay
();
...
@@ -1599,8 +1599,8 @@ function CEditorPage(api)
...
@@ -1599,8 +1599,8 @@ function CEditorPage(api)
e
.
returnValue
=
false
;
e
.
returnValue
=
false
;
}
}
if
(
AscCommon
.
g_inputContext
)
if
(
AscCommon
.
g_inputContext
&&
AscCommon
.
g_inputContext
.
externalChangeFocus
()
)
AscCommon
.
g_inputContext
.
externalChangeFocus
()
;
return
;
var
oWordControl
=
oThis
;
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