Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kityminder-core
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
吴志俊
kityminder-core
Commits
badc9a99
Commit
badc9a99
authored
Oct 15, 2014
by
techird
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
全屏允许ESC退出
parent
91f25871
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
6 deletions
+9
-6
zh-cn.js
lang/zh-cn/zh-cn.js
+2
-2
menu.js
ui/menu/menu.js
+2
-4
fullscreen.js
ui/ribbon/view/fullscreen.js
+5
-0
No files found.
lang/zh-cn/zh-cn.js
View file @
badc9a99
...
...
@@ -131,7 +131,7 @@ KityMinder.LANG['zh-cn'] = {
'load_share_for_edit'
:
'正在加载分享的文件...'
,
'share_sync_success'
:
'分享内容已同步'
,
'fullscreen_exit_hint'
:
'按 F11 退出全屏'
,
'fullscreen_exit_hint'
:
'按
Esc 或
F11 退出全屏'
,
'error_detail'
:
'详细信息'
,
'copy_and_feedback'
:
'复制并反馈'
,
...
...
@@ -309,7 +309,7 @@ KityMinder.LANG['zh-cn'] = {
'redirect'
:
'您正在打开连接 {0},百度脑图不能保证连接的安全性,是否要继续?'
,
'navigator'
:
'导航器'
,
'unsavedcontent'
:
'当前文件还没有保存到网盘:
\
n
\
n{0}
\
n
\
n
确定要继续操作么?(未保存的数据会缓存在草稿箱)
'
,
'unsavedcontent'
:
'当前文件还没有保存到网盘:
\
n
\
n{0}
\
n
\
n
虽然未保存的数据会缓存在草稿箱,但是清除浏览器缓存会导致草稿箱清除。
'
,
'shortcuts'
:
'快捷键'
,
'contact'
:
'联系与反馈'
,
...
...
ui/menu/menu.js
View file @
badc9a99
...
...
@@ -47,6 +47,7 @@ KityMinder.registerUI('menu/menu', function(minder) {
}
function
toggle
()
{
if
(
$
(
'#content-wrapper'
).
hasClass
(
'fullscreen'
))
return
;
(
isVisible
()
?
hide
:
show
)();
}
...
...
@@ -71,10 +72,7 @@ KityMinder.registerUI('menu/menu', function(minder) {
$button
.
on
(
'click'
,
toggle
);
$
(
window
).
keydown
(
function
(
e
)
{
// ESC Pressed
if
(
e
.
keyCode
==
27
)
toggle
();
});
minder
.
addShortcut
(
'esc'
,
toggle
);
// expose
ret
.
show
=
show
;
...
...
ui/ribbon/view/fullscreen.js
View file @
badc9a99
...
...
@@ -29,6 +29,11 @@ KityMinder.registerUI('ribbon/view/fullscreen', function(minder) {
}
minder
.
addShortcut
(
'F11'
,
fullscreen
);
minder
.
addShortcut
(
'Esc'
,
function
()
{
if
(
$
(
'#content-wrapper'
).
hasClass
(
'fullscreen'
))
{
$
(
'#content-wrapper'
).
removeClass
(
'fullscreen'
);
}
});
return
$fullscreenButton
;
});
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