diff --git a/publish/changeLog.md b/publish/changeLog.md
index 6671c80a..0b8d8394 100644
--- a/publish/changeLog.md
+++ b/publish/changeLog.md
@@ -2,6 +2,7 @@
- 允许选中列表内歌曲名、歌手名、专辑名内的文字,选中后可使用键盘快捷键进行复制
- 新增在列表可选内容区域鼠标右击时自动复制列表已选文字的功能
+- 新增在搜索框鼠标右击时自动粘贴剪贴板的文本到搜索框中
- 任务下载失败时将显示搜索按钮,方便在其他源搜索该歌曲
### 优化
diff --git a/src/renderer/components/material/SearchInput.vue b/src/renderer/components/material/SearchInput.vue
index 2d2a9131..006b80e0 100644
--- a/src/renderer/components/material/SearchInput.vue
+++ b/src/renderer/components/material/SearchInput.vue
@@ -1,12 +1,13 @@
div(:class="[$style.search, focus ? $style.active : '', big ? $style.big : '', small ? $style.small : '']")
div(:class="$style.form")
- input(:placeholder="placeholder" v-model.trim="text"
+ input(:placeholder="placeholder" v-model.trim="text" ref="dom_input"
@focus="handleFocus" @blur="handleBlur" @input="$emit('input', text)"
@change="sendEvent('change')"
@keyup.enter="handleSearch"
@keyup.40.prevent="handleKeyDown"
- @keyup.38.prevent="handleKeyUp")
+ @keyup.38.prevent="handleKeyUp"
+ @contextmenu="handleContextMenu")
button(type="button" @click="handleSearch")
slot
svg(version='1.1' xmlns='http://www.w3.org/2000/svg' xlink='http://www.w3.org/1999/xlink' height='100%' viewBox='0 0 30.239 30.239' space='preserve')
@@ -21,6 +22,7 @@ div(:class="[$style.search, focus ? $style.active : '', big ? $style.big : '', s
diff --git a/src/renderer/utils/index.js b/src/renderer/utils/index.js
index 43f1e3cb..94427314 100644
--- a/src/renderer/utils/index.js
+++ b/src/renderer/utils/index.js
@@ -291,6 +291,12 @@ export const toMD5 = str => crypto.createHash('md5').update(str).digest('hex')
*/
export const clipboardWriteText = str => clipboard.writeText(str)
+/**
+ * 从剪贴板读取文本
+ * @param {*} str
+ */
+export const clipboardReadText = str => clipboard.readText()
+
/**
* 设置音频 meta 信息
* @param {*} filePath