Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
web-apps
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
web-apps
Commits
ca3e9eb5
Commit
ca3e9eb5
authored
Nov 17, 2016
by
Julia Radzhabova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Bug 33431.
parent
daf066c6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
33 additions
and
6 deletions
+33
-6
apps/documenteditor/main/app/view/Statusbar.js
apps/documenteditor/main/app/view/Statusbar.js
+11
-2
apps/presentationeditor/main/app/view/DocumentPreview.js
apps/presentationeditor/main/app/view/DocumentPreview.js
+11
-2
apps/presentationeditor/main/app/view/Statusbar.js
apps/presentationeditor/main/app/view/Statusbar.js
+11
-2
No files found.
apps/documenteditor/main/app/view/Statusbar.js
View file @
ca3e9eb5
...
...
@@ -314,9 +314,9 @@ define([
return
me
.
txtPageNumInvalid
;
}
}).
on
(
'
keypress:after
'
,
function
(
input
,
e
)
{
var
box
=
me
.
$el
.
find
(
'
#status-goto-box
'
);
if
(
e
.
keyCode
===
Common
.
UI
.
Keys
.
RETURN
)
{
var
edit
=
box
.
find
(
'
input[type=text]
'
),
page
=
parseInt
(
edit
.
val
());
var
box
=
me
.
$el
.
find
(
'
#status-goto-box
'
),
edit
=
box
.
find
(
'
input[type=text]
'
),
page
=
parseInt
(
edit
.
val
());
if
(
!
page
||
page
--
>
me
.
pages
.
get
(
'
count
'
)
||
page
<
0
)
{
edit
.
select
();
return
false
;
...
...
@@ -328,6 +328,15 @@ define([
me
.
api
.
goToPage
(
page
);
me
.
api
.
asc_enableKeyEvents
(
true
);
return
false
;
}
}
).
on
(
'
keyup:after
'
,
function
(
input
,
e
)
{
if
(
e
.
keyCode
===
Common
.
UI
.
Keys
.
ESC
)
{
var
box
=
me
.
$el
.
find
(
'
#status-goto-box
'
);
box
.
focus
();
// for IE
box
.
parent
().
removeClass
(
'
open
'
);
me
.
api
.
asc_enableKeyEvents
(
true
);
return
false
;
}
}
...
...
apps/presentationeditor/main/app/view/DocumentPreview.js
View file @
ca3e9eb5
...
...
@@ -176,9 +176,9 @@ define([
return
me
.
txtPageNumInvalid
;
}
}).
on
(
'
keypress:after
'
,
function
(
input
,
e
)
{
var
box
=
me
.
$el
.
find
(
'
#preview-goto-box
'
);
if
(
e
.
keyCode
===
Common
.
UI
.
Keys
.
RETURN
)
{
var
edit
=
box
.
find
(
'
input[type=text]
'
),
page
=
parseInt
(
edit
.
val
());
var
box
=
me
.
$el
.
find
(
'
#preview-goto-box
'
),
edit
=
box
.
find
(
'
input[type=text]
'
),
page
=
parseInt
(
edit
.
val
());
if
(
!
page
||
page
--
>
me
.
pages
.
get
(
'
count
'
)
||
page
<
0
)
{
edit
.
select
();
return
false
;
...
...
@@ -190,6 +190,15 @@ define([
me
.
api
.
DemonstrationGoToSlide
(
page
);
me
.
api
.
asc_enableKeyEvents
(
true
);
return
false
;
}
}
).
on
(
'
keyup:after
'
,
function
(
input
,
e
)
{
if
(
e
.
keyCode
===
Common
.
UI
.
Keys
.
ESC
)
{
var
box
=
me
.
$el
.
find
(
'
#preview-goto-box
'
);
box
.
focus
();
// for IE
box
.
parent
().
removeClass
(
'
open
'
);
me
.
api
.
asc_enableKeyEvents
(
true
);
return
false
;
}
}
...
...
apps/presentationeditor/main/app/view/Statusbar.js
View file @
ca3e9eb5
...
...
@@ -211,9 +211,9 @@ define([
return
me
.
txtPageNumInvalid
;
}
}).
on
(
'
keypress:after
'
,
function
(
input
,
e
)
{
var
box
=
me
.
$el
.
find
(
'
#status-goto-box
'
);
if
(
e
.
keyCode
===
Common
.
UI
.
Keys
.
RETURN
)
{
var
edit
=
box
.
find
(
'
input[type=text]
'
),
page
=
parseInt
(
edit
.
val
());
var
box
=
me
.
$el
.
find
(
'
#status-goto-box
'
),
edit
=
box
.
find
(
'
input[type=text]
'
),
page
=
parseInt
(
edit
.
val
());
if
(
!
page
||
page
--
>
me
.
pages
.
get
(
'
count
'
)
||
page
<
0
)
{
edit
.
select
();
return
false
;
...
...
@@ -225,6 +225,15 @@ define([
me
.
api
.
goToPage
(
page
);
me
.
api
.
asc_enableKeyEvents
(
true
);
return
false
;
}
}
).
on
(
'
keyup:after
'
,
function
(
input
,
e
)
{
if
(
e
.
keyCode
===
Common
.
UI
.
Keys
.
ESC
)
{
var
box
=
me
.
$el
.
find
(
'
#status-goto-box
'
);
box
.
focus
();
// for IE
box
.
parent
().
removeClass
(
'
open
'
);
me
.
api
.
asc_enableKeyEvents
(
true
);
return
false
;
}
}
...
...
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