From 2f2593f0b5fbc4c158d00378ef1e9149bde94a66 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=87=E5=A4=A9?= Date: Tue, 5 Feb 2019 01:10:31 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=BF=AB=E6=8D=B7=E9=94=AE?= =?UTF-8?q?=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/js/app.js | 2 +- src/js/modules/profile.js | 4 ++- src/views/profile.htm | 54 ++++++++++++++++++++++++++++++++++++++- 3 files changed, 57 insertions(+), 3 deletions(-) diff --git a/src/js/app.js b/src/js/app.js index 44e2458..c50f514 100644 --- a/src/js/app.js +++ b/src/js/app.js @@ -59,7 +59,7 @@ Anot({ state: { theme: appInit.theme || 1, // 1:macos, 2: deepin winFocus: false, - mod: 'local', + mod: 'profile', searchTxt: '', playMode: Anot.ls('play-mode') >>> 0, // 0:all | 1:single | 2:random ktvMode: 0, diff --git a/src/js/modules/profile.js b/src/js/modules/profile.js index b431aa0..deeb7d8 100644 --- a/src/js/modules/profile.js +++ b/src/js/modules/profile.js @@ -26,7 +26,9 @@ export default Anot({ theme: appInit.theme || 1, musicPath: appInit.musicPath || '' }, - version: app.getVersion() + version: app.getVersion(), + cmd: process.platform === 'darwin' ? '⌘' : 'Ctrl', + alt: process.platform === 'darwin' ? '⌥' : 'Alt' }, watch: { 'setting.theme'(v) { diff --git a/src/views/profile.htm b/src/views/profile.htm index b8a09f7..a4ed989 100644 --- a/src/views/profile.htm +++ b/src/views/profile.htm @@ -22,7 +22,7 @@ 主题风格
MacOS风格 - Deepin风格 + Linux风格
@@ -38,6 +38,58 @@ +
+ 快捷键 +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
功能说明快捷键全局快捷键
播放/暂停空格{{cmd}}{{alt}}空格
上一首{{cmd}}←{{cmd}}{{alt}}←
下一首{{cmd}}→{{cmd}}{{alt}}→
音量+{{cmd}}↑{{cmd}}{{alt}}↑
音量-{{cmd}}↓{{cmd}}{{alt}}↓
桌面歌词{{cmd}}R{{cmd}}{{alt}}R
迷你模式{{cmd}}{{alt}}M{{cmd}}{{alt}}⇧M
+
+
+
关于Sonist