refs #749 Change help command of shortcut

This commit is contained in:
AkiraFukushima 2018-11-27 09:03:07 +09:00
parent 0ddd141005
commit bdd8408064
8 changed files with 27 additions and 1 deletions

View File

@ -19,5 +19,10 @@
},
"search": {
"tag": "Hashtag"
},
"modals": {
"shortcut": {
"?": "Show this help"
}
}
}

View File

@ -234,6 +234,7 @@
"p": "Open account profile of the toot",
"i": "Open the images",
"x": "Show/hide CW and NSFW",
"?": "Show this help",
"esc": "Close current page"
},
"report": {

View File

@ -19,5 +19,10 @@
},
"search": {
"tag": "Hashtag"
},
"modals": {
"shortcut": {
"?": "Show this help"
}
}
}

View File

@ -234,6 +234,7 @@
"p": "発言主のプロフィールを開く",
"i": "画像を表示",
"x": "CWとNSFWの表示切り替え",
"?": "このヘルプを開く",
"esc": "ページを閉じる"
}
},

View File

@ -19,5 +19,10 @@
},
"search": {
"tag": "Hashtag"
},
"modals": {
"shortcut": {
"?": "Show this help"
}
}
}

View File

@ -19,5 +19,10 @@
},
"search": {
"tag": "Hashtag"
},
"modals": {
"shortcut": {
"?": "Show this help"
}
}
}

View File

@ -5,7 +5,7 @@
:element-loading-text="$t('message.loading')"
element-loading-spinner="el-icon-loading"
element-loading-background="rgba(0, 0, 0, 0.8)"
v-shortkey="shortcutEnabled ? {help: ['h']} : {}"
v-shortkey="shortcutEnabled ? {help: ['shift', '?']} : {}"
@shortkey="handleKey"
>
<side-menu></side-menu>

View File

@ -59,6 +59,10 @@
<td><kbd>x</kbd></td>
<td>{{ $t('modals.shortcut.x') }}</td>
</tr>
<tr>
<td><kbd>?</kbd></td>
<td>{{ $t('modals.shortcut.?') }}</td>
</tr>
<tr>
<td><kbd>esc</kbd></td>
<td>{{ $t('modals.shortcut.esc') }}</td>