Add: keyshortcut to search

This commit is contained in:
cutls 2019-10-20 20:57:22 +09:00
parent 0e89f8bc4d
commit 5e13d86778
4 changed files with 12 additions and 4 deletions

View File

@ -14,6 +14,16 @@ $(function ($) {
} else {
var wv = true;
}
//Enter
if (e.keyCode === 13) {
if($("#src").is(':focus')){
src()
}
if($("#list-add").is(':focus')){
makeNewList()
}
return false;
}
//Ctrl+Shift+Enter:Lgen
if (event.metaKey || event.ctrlKey && wv) {
if (event.shiftKey) {

View File

@ -27,7 +27,7 @@
"fixwidthwarn": "",
"above": "above",
"font": "Font",
"fontwarn": "Select your favorite font to 'Select'(Windows/ macOS only)",
"fontwarn": "Select your favorite font to 'Select'(On Linux, it may not work.)",
"fontsize": "Font size",
"savefolder": "Folder to save",
"savefolderwarn": "TheDesk uses this value when it try to save pictures or take screenshots.",

View File

@ -27,7 +27,7 @@
"fixwidthwarn": "",
"above": "以上",
"font": "フォント",
"fontwarn": "「選択」を押してフォントを選んでください。(Linuxでは動きません)",
"fontwarn": "「選択」を押してフォントを選んでください。(Linuxでは動かない場合があります。)",
"fontsize": "フォントサイズ",
"savefolder": "デフォルトの保存先",
"savefolderwarn": "画像ダウンロードやスクリーンショットに影響します。",

View File

@ -374,8 +374,6 @@
<i class="fab fa-spotify"></i>@@spotify@@
</div>
<div class="collapsible-body">
<br><br>
@@spotifynote1@@<i class="material-icons" style="font-size:24px;">music_note</i>@@spotifynote2@@<br>
<h5>@@link@@</h5>
@@linkwarn@@<br>
<div id="spotify-code-show" class="hide"><input type="text" id="spotify-code"><button