Skip to content

Edge-Drop is a clipboard shelf on the edge of your screen. Hover to open it. Drag files and images into any app, click to copy text and links. Free and open-source for Windows.

feat(settings): add configurable global toggle hotkey with interactive recorder UI

Deepender2568d3c4dab6b1
diff --git a/edge-drop-translations/en.json b/edge-drop-translations/en.json
index 8b49ea6..5d10197 100644
--- a/edge-drop-translations/en.json
+++ b/edge-drop-translations/en.json
@@ -27,7 +27,9 @@
"incognitoDesc": "Temporarily pause recording new clipboard items",
"hoverActivationTitle": "Hover Activation",
"hoverActivationDescOn": "Slide open shelf when hovering cursor near screen edge",
- "hoverActivationDescOff": "Hover trigger paused. Use Alt + C to open",
+ "hoverActivationDescOff": "Hover trigger paused. Use {shortcut} to open",
+ "toggleHotkeyTitle": "Global Toggle Shortcut",
+ "toggleHotkeyDesc": "Set custom key combination to open or close shelf from anywhere",
"disabledHoverOff": "Disabled because Hover Activation is turned off",
"fullscreenProtectionTitle": "Fullscreen Protection",
"fullscreenProtectionDesc": "Automatically pause edge hover while playing games or watching fullscreen videos",
@@ -238,7 +240,8 @@
"itemDeleted": "Item deleted",
"itemPinned": "Item pinned",
"itemUnpinned": "Item unpinned",
- "settingsSaved": "Settings saved"
+ "settingsSaved": "Settings saved",
+ "shortcutUpdated": "Global shortcut set to {shortcut}"
},
"footer": {
"communityAndSupport": "Community & Support",
diff --git a/electron/main/index.ts b/electron/main/index.ts
index f4ccc1e..4819bf2 100644
--- a/electron/main/index.ts
+++ b/electron/main/index.ts
@@ -102,20 +102,8 @@ app.whenReady().then(() => {
startFullscreenMonitor()
createTray()
- // Register Alt+C global shortcut to toggle panel
- try {
- const { globalShortcut } = require('electron')
- let lastToggleTime = 0
- globalShortcut.register('Alt+C', () => {
- if (runtime.quitting) return
- const now = Date.now()
- if (now - lastToggleTime < 500) return // Throttle to once per 500ms
- lastToggleTime = now
- pushState.togglePanel()
- })
- } catch (err) {
- console.error('[Main] Failed to register global shortcut Alt+C:', err)
- }
+ // Register global shortcut to toggle panel
+ registerGlobalHotkey()
registerIpc()
registerSendListeners()
initState()
@@ -252,3 +240,38 @@ function createThumbnailResponse(filePath: string): Response {
// Silence unused import in environments where setVisible isn't referenced
// after the refactor (kept for second-instance wiring above).
void setInteractive
+
+let _lastHotkeyToggleTime = 0
+
+export function registerGlobalHotkey(targetHotkey?: string): boolean {
+ try {
+ const { globalShortcut } = require('electron')
+ globalShortcut.unregisterAll()
+ const settings = loadSettings()
+ const hotkey = targetHotkey || settings.toggleHotkey || 'Alt+C'
+
+ const success = globalShortcut.register(hotkey, () => {
+ if (runtime.quitting) return
+ const now = Date.now()
+ if (now - _lastHotkeyToggleTime < 500) return
+ _lastHotkeyToggleTime = now
+ pushState.togglePanel()
+ })
+
+ if (!success && hotkey !== 'Alt+C') {
+ console.warn(`[Main] Failed to register global shortcut ${hotkey}, falling back to Alt+C`)
+ globalShortcut.register('Alt+C', () => {
+ if (runtime.quitting) return
+ const now = Date.now()
+ if (now - _lastHotkeyToggleTime < 500) return
+ _lastHotkeyToggleTime = now
+ pushState.togglePanel()
+ })
+ return false
+ }
+ return success
+ } catch (err) {
+ console.error('[Main] Failed to register global shortcut:', err)
+ return false
+ }
+}
diff --git a/electron/main/ipc.ts b/electron/main/ipc.ts
index e52c61e..079c524 100644
--- a/electron/main/ipc.ts
+++ b/electron/main/ipc.ts
@@ -13,7 +13,8 @@ import { psHost, getSystemPowerShellPath } from './powershell'
import { filterValidPaths, isValidFilePath, isExistingFilePath } from './pathValidation'
import { type InvokeMap, type InvokeChannel, type SendMap, type SendChannel } from '../../shared/ipc'
import { getStore, loadSettings, saveSettings, pushState, addFiles, getWatcher } from './state'
-import { sendToMainWindow, setInteractive, setHeartbeatPaused, setHotZoneWidth, repositionWindow, getDisplayListOptions, popUpAndRetract } from './window'
+import { sendToMainWindow, setInteractive, setHeartbeatPaused, setHotZoneWidth, repositionWindow, getDisplayListOptions, popUpAndRetract, focusMainWindow } from './window'
+import { registerGlobalHotkey } from './index'
import { getOnboardingWindow } from './onboardingWindow'
import { rebuildTrayMenu } from './tray'
import { startDragOut, resolveDragData } from './drag'
@@ -596,11 +597,25 @@ export function registerIpc(): void {
if (patch.autoUpdates !== undefined) {
syncAutoUpdaterState()
}
+ if (patch.toggleHotkey !== undefined) {
+ registerGlobalHotkey(patch.toggleHotkey)
+ }
pushState.settings(next)
rebuildTrayMenu()
return next
})
+ handle('hotkey:pause', (paused) => {
+ if (paused) {
+ try {
+ const { globalShortcut } = require('electron')
+ globalShortcut.unregisterAll()
+ } catch { /* ignore */ }
+ } else {
+ registerGlobalHotkey()
+ }
+ })
+
handle('window:set-interactive', (value) => {
setInteractive(value)
})
@@ -616,6 +631,10 @@ export function registerIpc(): void {
}
})
+ handle('window:focus', () => {
+ focusMainWindow()
+ })
+
handle('displays:list', () => {
return getDisplayListOptions()
})
diff --git a/electron/main/window.ts b/electron/main/window.ts
index c15e091..5ac5b02 100644
--- a/electron/main/window.ts
+++ b/electron/main/window.ts
@@ -451,7 +451,7 @@ export function createWindow(): BrowserWindow {
hasShadow: false,
skipTaskbar: true,
alwaysOnTop: true,
- focusable: false,
+ focusable: true,
backgroundColor: '#00000000',
roundedCorners: false,
webPreferences: {
@@ -722,6 +722,12 @@ export function setVisible(visible: boolean): void {
}
}
+export function focusMainWindow(): void {
+ if (mainWindow && !mainWindow.isDestroyed()) {
+ mainWindow.focus()
+ }
+}
+
/**
* Thin invisible detector window.
*
diff --git a/electron/preload/index.ts b/electron/preload/index.ts
index e2d0004..5eba15d 100644
--- a/electron/preload/index.ts
+++ b/electron/preload/index.ts
@@ -164,8 +164,10 @@ const api = {
invoke('settings:update', patch),
setInteractive: (value: boolean) => invoke('window:set-interactive', value),
setPreviewMode: (active: boolean) => invoke('window:set-preview-mode', active),
+ pauseHotkey: (paused: boolean) => invoke('hotkey:pause', paused),
revealFile: (path: string) => invoke('file:reveal', path),
minimizeWindow: () => invoke('window:minimize'),
+ focusWindow: () => invoke('window:focus'),
setInternalDrag: (active: boolean) => { internalDrag = active },
broadcastTutorialStep: (step: number) => send('tutorial:set-step', step),
diff --git a/shared/bridge.ts b/shared/bridge.ts
index 56839f8..b2b0d1b 100644
--- a/shared/bridge.ts
+++ b/shared/bridge.ts
@@ -37,8 +37,10 @@ export interface EdgeApi {
updateSettings: (patch: Partial<Settings>) => Promise<Settings>
setInteractive: (value: boolean) => Promise<void>
setPreviewMode: (active: boolean) => Promise<void>
+ pauseHotkey: (paused: boolean) => Promise<void>
revealFile: (path: string) => Promise<boolean>
minimizeWindow: () => Promise<void>
+ focusWindow: () => Promise<void>
getDisplays: () => Promise<import('./types').DisplayInfo[]>
getReleases: () => Promise<Array<{
version: string
diff --git a/shared/ipc.ts b/shared/ipc.ts
index c0a029e..48b3000 100644
--- a/shared/ipc.ts
+++ b/shared/ipc.ts
@@ -65,6 +65,9 @@ export interface InvokeMap {
/** Update a persisted setting. */
'settings:update': { args: [patch: Partial<Settings>]; result: Settings }
+ /** Pause/resume global shortcut registration temporarily (e.g. while recording a new hotkey). */
+ 'hotkey:pause': { args: [paused: boolean]; result: void }
+
/** Toggle whether the window is interactive (mouse-ignore). */
'window:set-interactive': { args: [interactive: boolean]; result: void }
@@ -74,6 +77,9 @@ export interface InvokeMap {
/** Minimize the window (used by Onboarding). */
'window:minimize': { args: []; result: void }
+ /** Request explicit OS focus for the main window (e.g. for recording hotkeys). */
+ 'window:focus': { args: []; result: void }
+
/** Trigger a download of the already-available update and quit-and-install. */
'app:install-update': { args: []; result: void }
diff --git a/shared/types.ts b/shared/types.ts
index 55ed6c5..f0342a0 100644
--- a/shared/types.ts
+++ b/shared/types.ts
@@ -172,6 +172,8 @@ export interface Settings {
movePastedToTop?: boolean
/** One-time flag tracking if the v0.2.6 upgrade unpinned history cleanup has run. */
v026UpgradeCleaned?: boolean
+ /** Configurable global hotkey accelerator to toggle Edge-Drop shelf (e.g. 'Alt+C', 'Alt+Shift+C'). Default: 'Alt+C'. */
+ toggleHotkey?: string
}
export const DEFAULT_SETTINGS: Settings = {
@@ -203,7 +205,8 @@ export const DEFAULT_SETTINGS: Settings = {
hoverActivation: true,
fontSizeScale: 1.0,
autoUpdates: true,
- language: 'system'
+ language: 'system',
+ toggleHotkey: 'Alt+C'
}
diff --git a/src/components/HotkeyRecorder.tsx b/src/components/HotkeyRecorder.tsx
new file mode 100644
index 0000000..52b4968
--- /dev/null
+++ b/src/components/HotkeyRecorder.tsx
@@ -0,0 +1,249 @@
+import { useState, useEffect, useRef, useCallback } from 'react'
+import { playToggleSound, playButtonClickSound } from '../lib/soundEffects'
+import { RotateCcwIcon, CloseIcon } from './icons'
+import { edge } from '../lib/edge'
+
+interface HotkeyRecorderProps {
+ hotkey: string
+ onChange: (nextHotkey: string) => void
+}
+
+/** Formats an Electron accelerator string (e.g. "Alt+Shift+C") into individual display keys. */
+function parseKeyBadges(accelerator: string): string[] {
+ if (!accelerator) return ['Alt', 'C']
+ return accelerator
+ .split('+')
+ .map((k) => {
+ const trimmed = k.trim()
+ if (trimmed === 'CommandOrControl' || trimmed === 'Ctrl') return 'Ctrl'
+ if (trimmed === 'Meta' || trimmed === 'Super' || trimmed === 'Command') return 'Win'
+ return trimmed.length === 1 ? trimmed.toUpperCase() : trimmed
+ })
+}
+
+/** Converts a KeyboardEvent to modifier list + primary key name. */
+function eventToAccelerator(e: KeyboardEvent): { accelerator: string; isValid: boolean; partialBadges: string[] } {
+ const modifiers: string[] = []
+
+ if (e.ctrlKey) modifiers.push('Ctrl')
+ if (e.altKey) modifiers.push('Alt')
+ if (e.shiftKey) modifiers.push('Shift')
+ if (e.metaKey) modifiers.push('Super')
+
+ // Identify main non-modifier key
+ let keyName = ''
+ const code = e.code
+ const key = e.key
+
+ if (/^Key[A-Z]$/i.test(code)) {
+ keyName = code.slice(3).toUpperCase()
+ } else if (/^Digit[0-9]$/i.test(code)) {
+ keyName = code.slice(5)
+ } else if (/^F[1-9][0-2]?$/i.test(code)) {
+ keyName = code.toUpperCase()
+ } else if (code === 'Space') {
+ keyName = 'Space'
+ } else if (code === 'Tab') {
+ keyName = 'Tab'
+ } else if (code === 'Backspace') {
+ keyName = 'Backspace'
+ } else if (code === 'Enter') {
+ keyName = 'Enter'
+ } else if (code === 'Comma') {
+ keyName = ','
+ } else if (code === 'Period') {
+ keyName = '.'
+ } else if (code === 'Slash') {
+ keyName = '/'
+ } else if (code === 'Backquote') {
+ keyName = '`'
+ } else if (code === 'Minus') {
+ keyName = '-'
+ } else if (code === 'Equal') {
+ keyName = '='
+ } else if (key && key.length === 1 && !['Control', 'Alt', 'Shift', 'Meta'].includes(key)) {
+ keyName = key.toUpperCase()
+ }
+
+ const isModifierOnly = ['Control', 'Alt', 'Shift', 'Meta'].includes(key)
+ const isFKey = /^F[1-9][0-2]?$/i.test(keyName)
+ const hasModifier = modifiers.length > 0
+
+ const allParts = [...modifiers]
+ if (keyName && !isModifierOnly) {
+ allParts.push(keyName)
+ }
+
+ const isValid = (hasModifier && !!keyName && !isModifierOnly) || isFKey
+
+ return {
+ accelerator: allParts.join('+'),
+ isValid,
+ partialBadges: allParts.map(p => (p === 'Super' ? 'Win' : p))
+ }
+}
+
+export function HotkeyRecorder({ hotkey, onChange }: HotkeyRecorderProps) {
+ const [isRecording, setIsRecording] = useState(false)
+ const [pressedBadges, setPressedBadges] = useState<string[]>([])
+ const containerRef = useRef<HTMLDivElement>(null)
+
+ const activeHotkey = hotkey || 'Alt+C'
+ const displayBadges = parseKeyBadges(activeHotkey)
+ const isDefault = activeHotkey === 'Alt+C'
+
+ const stopRecording = useCallback((canceled = false) => {
+ setIsRecording(false)
+ setPressedBadges([])
+ try {
+ edge.pauseHotkey(false).catch?.(() => {})
+ } catch {
+ /* ignore */
+ }
+ if (canceled) {
+ playButtonClickSound()
+ }
+ }, [])
+
+ const startRecording = useCallback(() => {
+ if (document.activeElement instanceof HTMLElement) {
+ document.activeElement.blur()
+ }
+
+ try {
+ window.focus()
+ edge.focusWindow().catch?.(() => {})
+ } catch {
+ /* ignore */
+ }
+
+ try {
+ edge.pauseHotkey(true).catch?.(() => {})
+ } catch {
+ /* ignore */
+ }
+
+ playButtonClickSound()
+ setIsRecording(true)
+ setPressedBadges([])
+ }, [])
+
+ useEffect(() => {
+ if (!isRecording) return
+
+ const handleKeyDown = (e: KeyboardEvent) => {
+ e.preventDefault()
+ e.stopPropagation()
+
+ if (e.key === 'Escape') {
+ stopRecording(true)
+ return
+ }
+
+ const { accelerator, isValid, partialBadges } = eventToAccelerator(e)
+ setPressedBadges(partialBadges)
+
+ if (isValid) {
+ playToggleSound(true)
+ stopRecording(false)
+ onChange(accelerator)
+ }
+ }
+
+ const handleKeyUp = (e: KeyboardEvent) => {
+ const { partialBadges } = eventToAccelerator(e)
+ setPressedBadges(partialBadges)
+ }
+
+ const handleClickOutside = (e: MouseEvent) => {
+ if (containerRef.current && !containerRef.current.contains(e.target as Node)) {
+ stopRecording(true)
+ }
+ }
+
+ window.addEventListener('keydown', handleKeyDown, { capture: true })
+ window.addEventListener('keyup', handleKeyUp, { capture: true })
+ window.addEventListener('mousedown', handleClickOutside)
+
+ return () => {
+ window.removeEventListener('keydown', handleKeyDown, { capture: true })
+ window.removeEventListener('keyup', handleKeyUp, { capture: true })
+ window.removeEventListener('mousedown', handleClickOutside)
+ }
+ }, [isRecording, onChange, stopRecording])
+
+ const handleResetDefault = (e: React.MouseEvent) => {
+ e.stopPropagation()
+ playButtonClickSound()
+ stopRecording(false)
+ onChange('Alt+C')
+ }
+
+ return (
+ <div ref={containerRef} className="hotkey-recorder-wrap">
+ <div
+ className={`hotkey-field ${isRecording ? 'is-recording' : ''}`}
+ onClick={!isRecording ? startRecording : undefined}
+ >
+ {isRecording ? (
+ <div className="hotkey-field-content">
+ <div className="hotkey-recording-indicator">
+ <span className="recording-pulse-dot" />
+ {pressedBadges.length > 0 ? (
+ <div className="hotkey-keycaps-row">
+ {pressedBadges.map((badge, idx) => (
+ <span key={idx} className="hotkey-keycap-item">
+ {idx > 0 && <span className="hotkey-plus-symbol">+</span>}
+ <kbd className="hotkey-keycap is-active">{badge}</kbd>
+ </span>
+ ))}
+ <span className="hotkey-plus-symbol" style={{ opacity: 0.35 }}>+ ...</span>
+ </div>
+ ) : (
+ <span className="hotkey-recording-hint">Press key combination...</span>
+ )}
+ </div>
+
+ <button
+ type="button"
+ className="hotkey-cancel-icon-btn"
+ onClick={(e) => {
+ e.stopPropagation()
+ stopRecording(true)
+ }}
+ title="Cancel recording (Esc)"
+ >
+ <CloseIcon width={11} height={11} />
+ <span className="hotkey-esc-text">Esc</span>
+ </button>
+ </div>
+ ) : (
+ <div className="hotkey-field-content">
+ <div className="hotkey-keycaps-row">
+ {displayBadges.map((badge, idx) => (
+ <span key={idx} className="hotkey-keycap-item">
+ {idx > 0 && <span className="hotkey-plus-symbol">+</span>}
+ <kbd className="hotkey-keycap">{badge}</kbd>
+ </span>
+ ))}
+ </div>
+
+ <div className="hotkey-field-actions">
+ {!isDefault && (
+ <button
+ type="button"
+ className="hotkey-inline-reset-btn"
+ onClick={handleResetDefault}
+ title="Reset to default (Alt+C)"
+ >
+ <RotateCcwIcon width={12} height={12} />
+ </button>
+ )}
+ <span className="hotkey-field-edit-badge">Edit</span>
+ </div>
+ </div>
+ )}
+ </div>
+ </div>
+ )
+}
diff --git a/src/components/Settings.tsx b/src/components/Settings.tsx
index 0d3ba8f..14cef72 100644
--- a/src/components/Settings.tsx
+++ b/src/components/Settings.tsx
@@ -6,6 +6,7 @@ import { LiquidOctopusLoader } from './LiquidOctopusLoader'
import { TickIndicatorIcon, CopyIndicatorIcon, SparkleIndicatorIcon } from './CopyIndicatorCurve'
import { ChevronRightIcon, CloseIcon, LogOutIcon, StarIcon, GithubOctocatLogo } from './icons'
import { ChangelogView } from './ChangelogView'
+import { HotkeyRecorder } from './HotkeyRecorder'
import { playDialTickSound, playToggleSound, playButtonClickSound } from '../lib/soundEffects'
import { useTranslation } from '../i18n'
import '../styles/settings.css'
@@ -22,6 +23,7 @@ export function Settings({ inlineIndicatorStyle }: { inlineIndicatorStyle?: bool
{ id: 'appearance', label: t('tabs.appearance') },
]
const patch = useStore((s) => s.patchSettings)
+ const pushToast = useStore((s) => s.pushToast)
const updateInfo = useStore((s) => s.updateInfo)
const isStoreBuild = useStore((s) => s.isStoreBuild)
const currentVersion = useStore((s) => s.currentVersion)
@@ -352,7 +354,7 @@ export function Settings({ inlineIndicatorStyle }: { inlineIndicatorStyle?: bool
{(settings.hoverActivation ?? true) ? (
<span>{t('behaviour.hoverActivationDescOn')}</span>
) : (
- <span>{t('behaviour.hoverActivationDescOff')}</span>
+ <span>{t('behaviour.hoverActivationDescOff', { shortcut: settings.toggleHotkey || 'Alt+C' })}</span>
)}
</div>
</div>
@@ -370,6 +372,32 @@ export function Settings({ inlineIndicatorStyle }: { inlineIndicatorStyle?: bool
<div className="setting-divider" />
+ {/* ── Global Toggle Shortcut (Vertical Layout) ── */}
+ <div style={{
+ display: 'flex',
+ flexDirection: 'column',
+ gap: 8,
+ padding: '2px 0'
+ }}>
+ <div>
+ <div className="setting-title">{t('behaviour.toggleHotkeyTitle')}</div>
+ <div className="setting-desc" style={{ marginTop: 2 }}>{t('behaviour.toggleHotkeyDesc')}</div>
+ </div>
+ <HotkeyRecorder
+ hotkey={settings.toggleHotkey || 'Alt+C'}
+ onChange={(nextHotkey) => {
+ patch({ toggleHotkey: nextHotkey })
+ pushToast({
+ id: Date.now().toString(),
+ message: t('toast.shortcutUpdated', { shortcut: nextHotkey }),
+ tone: 'info'
+ })
+ }}
+ />
+ </div>
+
+ <div className="setting-divider" />
+
<div className="setting-row" style={{ opacity: (settings.hoverActivation ?? true) ? 1 : 0.45, transition: 'opacity 0.2s ease' }}>
<div className="setting-info">
<div className="setting-title">{t('behaviour.fullscreenProtectionTitle')}</div>
diff --git a/src/components/icons.tsx b/src/components/icons.tsx
index 59a2067..a3829e3 100644
--- a/src/components/icons.tsx
+++ b/src/components/icons.tsx
@@ -38,12 +38,15 @@ import {
LogOut,
Coffee,
Heart,
- Star
+ Star,
+ RotateCcw
} from 'lucide-react'
import { getFileKindByExt } from '../lib/fileType'
type P = SVGProps<SVGSVGElement>
+export const RotateCcwIcon = (p: P) => <RotateCcw size={p.width ?? 16} strokeWidth={2.2} {...(p as any)} />
+
export const CoffeeIcon = (p: P) => <Coffee size={p.width ?? 16} strokeWidth={2.2} {...(p as any)} />
export const HeartIcon = (p: P) => <Heart size={p.width ?? 16} strokeWidth={2.2} {...(p as any)} />
export const StarIcon = (p: P) => <Star size={p.width ?? 16} strokeWidth={2.2} {...(p as any)} />
diff --git a/src/i18n/translations.ts b/src/i18n/translations.ts
index 8186d5f..3504342 100644
--- a/src/i18n/translations.ts
+++ b/src/i18n/translations.ts
@@ -28,6 +28,8 @@ export interface TranslationKeys {
hoverActivationTitle: string
hoverActivationDescOn: string
hoverActivationDescOff: string
+ toggleHotkeyTitle?: string
+ toggleHotkeyDesc?: string
disabledHoverOff: string
fullscreenProtectionTitle: string
fullscreenProtectionDesc: string
@@ -239,6 +241,7 @@ export interface TranslationKeys {
itemPinned: string
itemUnpinned: string
settingsSaved: string
+ shortcutUpdated?: string
}
footer: {
communityAndSupport: string
@@ -458,7 +461,9 @@ export const en: TranslationKeys = {
"incognitoDesc": "Temporarily pause recording new clipboard items",
"hoverActivationTitle": "Hover Activation",
"hoverActivationDescOn": "Slide open shelf when hovering cursor near screen edge",
- "hoverActivationDescOff": "Hover trigger paused. Use Alt + C to open",
+ "hoverActivationDescOff": "Hover trigger paused. Use {shortcut} to open",
+ "toggleHotkeyTitle": "Global Toggle Shortcut",
+ "toggleHotkeyDesc": "Set custom key combination to open or close shelf from anywhere",
"disabledHoverOff": "Disabled because Hover Activation is turned off",
"fullscreenProtectionTitle": "Fullscreen Protection",
"fullscreenProtectionDesc": "Automatically pause edge hover while playing games or watching fullscreen videos",
@@ -669,7 +674,8 @@ export const en: TranslationKeys = {
"itemDeleted": "Item deleted",
"itemPinned": "Item pinned",
"itemUnpinned": "Item unpinned",
- "settingsSaved": "Settings saved"
+ "settingsSaved": "Settings saved",
+ "shortcutUpdated": "Global shortcut set to {shortcut}"
},
"footer": {
"communityAndSupport": "Community & Support",
diff --git a/src/styles/settings.css b/src/styles/settings.css
index 8c64d8b..7610b3b 100644
--- a/src/styles/settings.css
+++ b/src/styles/settings.css
@@ -760,4 +760,182 @@
justify-content: center;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
z-index: 5;
+}
+
+/* Hotkey Recorder UI */
+.hotkey-recorder-wrap {
+ width: 100%;
+}
+
+.hotkey-field {
+ display: flex;
+ align-items: center;
+ width: 100%;
+ height: 38px;
+ padding: 0 10px;
+ background: rgba(255, 255, 255, 0.04);
+ border: 1px solid rgba(255, 255, 255, 0.1);
+ border-radius: 8px;
+ cursor: pointer;
+ outline: none;
+ transition: all 0.16s cubic-bezier(0.16, 1, 0.3, 1);
+ user-select: none;
+}
+
+.hotkey-field:hover {
+ background: rgba(255, 255, 255, 0.07);
+ border-color: rgba(255, 255, 255, 0.2);
+}
+
+.hotkey-field.is-recording {
+ background: rgba(255, 107, 107, 0.06);
+ border-color: #ff6b6b;
+ box-shadow: 0 0 12px rgba(255, 107, 107, 0.2);
+ cursor: default;
+}
+
+.hotkey-field-content {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ width: 100%;
+}
+
+.hotkey-keycaps-row {
+ display: flex;
+ align-items: center;
+ gap: 4px;
+}
+
+.hotkey-keycap-item {
+ display: flex;
+ align-items: center;
+ gap: 4px;
+}
+
+.hotkey-plus-symbol {
+ color: rgba(255, 255, 255, 0.35);
+ font-size: 11px;
+ font-weight: 600;
+ user-select: none;
+}
+
+.hotkey-keycap {
+ display: inline-flex;
+ align-items: center;
+ justify-content: center;
+ min-width: 22px;
+ padding: 2px 7px;
+ height: 22px;
+ background: rgba(255, 255, 255, 0.12);
+ border: 1px solid rgba(255, 255, 255, 0.18);
+ border-bottom: 2px solid rgba(255, 255, 255, 0.32);
+ border-radius: 5px;
+ color: #ffffff;
+ font-family: var(--font-mono, monospace);
+ font-size: 11px;
+ font-weight: 600;
+ line-height: 1;
+ box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
+}
+
+.hotkey-keycap.is-active {
+ background: rgba(255, 107, 107, 0.18);
+ border-color: rgba(255, 107, 107, 0.45);
+ border-bottom: 2px solid #ff6b6b;
+ color: #ff8585;
+}
+
+.hotkey-field-actions {
+ display: flex;
+ align-items: center;
+ gap: 6px;
+}
+
+.hotkey-field-edit-badge {
+ font-size: 10.5px;
+ color: rgba(255, 255, 255, 0.4);
+ font-weight: 500;
+ transition: color 0.15s ease;
+}
+
+.hotkey-field:hover .hotkey-field-edit-badge {
+ color: rgba(255, 255, 255, 0.7);
+}
+
+.hotkey-inline-reset-btn {
+ display: inline-flex;
+ align-items: center;
+ justify-content: center;
+ width: 22px;
+ height: 22px;
+ border-radius: 4px;
+ background: rgba(255, 255, 255, 0.07);
+ border: 1px solid rgba(255, 255, 255, 0.12);
+ color: rgba(255, 255, 255, 0.6);
+ cursor: pointer;
+ transition: all 0.15s ease;
+}
+
+.hotkey-inline-reset-btn:hover {
+ background: rgba(255, 255, 255, 0.14);
+ color: #ffffff;
+ border-color: rgba(255, 255, 255, 0.25);
+}
+
+/* Recording Mode Elements */
+.hotkey-recording-indicator {
+ display: flex;
+ align-items: center;
+ gap: 7px;
+}
+
+.recording-pulse-dot {
+ width: 7px;
+ height: 7px;
+ border-radius: 50%;
+ background: #ff6b6b;
+ box-shadow: 0 0 6px #ff6b6b;
+ animation: blinkDot 0.8s ease-in-out infinite alternate;
+ flex-shrink: 0;
+}
+
+@keyframes blinkDot {
+ from { opacity: 0.3; }
+ to { opacity: 1; }
+}
+
+.hotkey-recording-hint {
+ font-size: 11.5px;
+ font-weight: 500;
+ color: #ff8585;
+ letter-spacing: 0.1px;
+}
+
+.hotkey-cancel-icon-btn {
+ display: inline-flex;
+ align-items: center;
+ gap: 4px;
+ padding: 3px 6px;
+ height: 22px;
+ border-radius: 4px;
+ background: rgba(255, 255, 255, 0.08);
+ border: 1px solid rgba(255, 255, 255, 0.14);
+ color: rgba(255, 255, 255, 0.7);
+ cursor: pointer;
+ transition: all 0.15s ease;
+}
+
+.hotkey-cancel-icon-btn:hover {
+ background: rgba(255, 255, 255, 0.16);
+ color: #ffffff;
+ border-color: rgba(255, 255, 255, 0.25);
+}
+
+.hotkey-esc-text {
+ font-size: 9.5px;
+ font-family: var(--font-mono, monospace);
+ font-weight: 600;
+ color: rgba(255, 255, 255, 0.5);
+ line-height: 1;
}
\ No newline at end of file