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
385af23a
Commit
385af23a
authored
Jul 28, 2016
by
Oleg Korshul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ie emulate keydown
parent
38ebc2c1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletion
+14
-1
common/text_input.js
common/text_input.js
+14
-1
No files found.
common/text_input.js
View file @
385af23a
...
...
@@ -121,6 +121,7 @@
this
.
IsUseFirstTextInputAfterComposition
=
false
;
this
.
nativeFocusElement
=
null
;
this
.
nativeFocusElementNoRemoveOnElementFocus
=
false
;
this
.
InterfaceEnableKeyEvents
=
true
;
this
.
ieNonCompositionPrefix
=
""
;
...
...
@@ -1215,10 +1216,14 @@
document
.
addEventListener
(
"
focus
"
,
function
(
e
)
{
var
t
=
window
[
'
AscCommon
'
].
g_inputContext
;
var
_oldNativeFE
=
t
.
nativeFocusElement
;
t
.
nativeFocusElement
=
e
.
target
;
//console.log(t.nativeFocusElement);
var
_nativeFocusElementNoRemoveOnElementFocus
=
t
.
nativeFocusElementNoRemoveOnElementFocus
;
t
.
nativeFocusElementNoRemoveOnElementFocus
=
false
;
if
(
t
.
InterfaceEnableKeyEvents
==
false
)
{
t
.
nativeFocusElement
=
null
;
...
...
@@ -1228,7 +1233,12 @@
if
(
t
.
nativeFocusElement
.
id
==
t
.
HtmlArea
.
id
)
{
t
.
Api
.
asc_enableKeyEvents
(
true
,
true
);
t
.
nativeFocusElement
=
null
;
if
(
_nativeFocusElementNoRemoveOnElementFocus
)
t
.
nativeFocusElement
=
_oldNativeFE
;
else
t
.
nativeFocusElement
=
null
;
return
;
}
if
(
t
.
nativeFocusElement
.
id
==
window
[
'
AscCommon
'
].
g_clipboardBase
.
CommonDivId
)
...
...
@@ -1237,6 +1247,8 @@
return
;
}
t
.
nativeFocusElementNoRemoveOnElementFocus
=
false
;
var
_isElementEditable
=
false
;
if
(
true
)
{
...
...
@@ -1293,6 +1305,7 @@
t
.
nativeFocusElement
=
null
;
var
_elem
=
t
.
nativeFocusElement
;
t
.
nativeFocusElementNoRemoveOnElementFocus
=
true
;
// ie focus async
t
.
HtmlArea
.
focus
();
t
.
nativeFocusElement
=
_elem
;
t
.
Api
.
asc_enableKeyEvents
(
true
,
true
);
...
...
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