* finish task #2686.

This commit is contained in:
chenfeiCF
2016-11-15 13:56:08 +08:00
parent c72a51076f
commit 6dc42d23e2
4 changed files with 11 additions and 1 deletions
+1
View File
@@ -74,6 +74,7 @@ $lang->tutorialConfirm = 'You are using tutorial. Do you want to exit right now
$lang->preShortcutKey = '[Shortcut:←]';
$lang->nextShortcutKey = '[Shortcut:→]';
$lang->backShortcutKey = '[Shortcut:Alt+↑]';
$lang->select = 'Select';
$lang->selectAll = 'Select All';
+1
View File
@@ -74,6 +74,7 @@ $lang->tutorialConfirm = '检测到你尚未退出新手教程模式,是否现
$lang->preShortcutKey = '[快捷键:←]';
$lang->nextShortcutKey = '[快捷键:→]';
$lang->backShortcutKey = '[快捷键:Alt+↑]';
$lang->select = '选择';
$lang->selectAll = '全选';
+2 -1
View File
@@ -828,7 +828,8 @@ class commonModel extends model
global $lang, $app;
if(isonlybody()) return false;
echo html::a($backLink, '<i class="icon-goback icon-level-up icon-large icon-rotate-270"></i>', '', "class='btn' title={$lang->goback}");
$title = $lang->goback . $lang->backShortcutKey;
echo html::a($backLink, '<i class="icon-goback icon-level-up icon-large icon-rotate-270"></i>', '', "id='back' class='btn' title={$title}");
if(isset($preAndNext->pre) and $preAndNext->pre)
{
+7
View File
@@ -1684,6 +1684,13 @@ function initHotKey()
return false;
});
/* Alt+up, go back to the previous page. */
$(document).bind('keydown', 'Alt+up', function(evt)
{
backLink = ($('#back').attr("href"));
if(typeof(backLink) != 'undefined') location.href = backLink;
});
/* left, go to pre object. */
$(document).bind('keydown', 'left', function(evt)
{