@@ -27,7 +27,6 @@ const { config, loadConfig, saveConfig } = useConfig();
2727const { autoStart, toggleAutoStart, refreshAutoStart } = useAutoStart ();
2828const { mountShortcut, unregisterAll } = useShortcut ();
2929
30- const modalShortcutSetter = ref (false );
3130const panelview = new webviewWindow .WebviewWindow (' context' , {
3231 url: ' /panel' ,
3332});
@@ -118,14 +117,6 @@ function handleShortcutChange(shortcut: string) {
118117 config .value .globalShortcut = shortcut ;
119118}
120119
121- function openShortcutSetter() {
122- modalShortcutSetter .value = true ;
123- }
124-
125- function closeShortcutSetter() {
126- modalShortcutSetter .value = false ;
127- }
128-
129120function closeApp() {
130121 exit (0 );
131122}
@@ -165,7 +156,7 @@ function openProjectPage() {
165156}
166157
167158function openFeedbackPage() {
168- return openUrl (' https://github.com/CKylinMC/PasteMe/issues/new' );
159+ return openUrl (' https://github.com/CKylinMC/PasteMe/issues/new/choose ' );
169160}
170161function openCloseConfirm() {
171162 closeConfirm .value = true ;
@@ -176,7 +167,9 @@ const updateSuffix =
176167 </script >
177168
178169<template >
179- <div class =" text-black p-5 align-left relative select-none dark:bg-transparent dark:text-white" >
170+ <div
171+ class =" text-black p-5 align-left relative select-none bg-white/95 dark:bg-transparent dark:text-white"
172+ >
180173 <div
181174 data-tauri-drag-region
182175 class =" absolute top-0 right-0 h-10 w-full flex flex-row justify-end items-start"
@@ -273,12 +266,12 @@ const updateSuffix =
273266 </n-list-item >
274267 <n-list-item >
275268 <template #suffix >
276- <n-button @click = " openShortcutSetter " >{{
277- config.globalShortcut?.replace(
278- 'CommandOrControl',
279- 'Ctrl'
280- ) || '未设置'
281- }}</ n-button >
269+ <div class = " w-60 text-right " >
270+ < KeySelector
271+ @set = " handleShortcutChange "
272+ :shortcut = " config.globalShortcut "
273+ />
274+ </ div >
282275 </template >
283276 <n-thing
284277 title =" 全局快捷键"
@@ -737,25 +730,7 @@ const updateSuffix =
737730 </n-tab-pane >
738731 </n-tabs >
739732 </div >
740-
741- <n-modal :show =" modalShortcutSetter" >
742- <n-card
743- style =" width : 400px "
744- title =" 设置全局快捷键"
745- :bordered =" false"
746- size =" huge"
747- role =" dialog"
748- aria-modal =" true"
749- >
750- <KeySelector
751- @set =" handleShortcutChange"
752- v-model:shortcut =" config.globalShortcut"
753- />
754- <template #footer >
755- <n-button @click =" closeShortcutSetter" >确定</n-button >
756- </template >
757- </n-card >
758- </n-modal >
733+
759734 <n-modal
760735 v-model:show =" closeConfirm"
761736 preset =" dialog"
0 commit comments