mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-07-29 01:25:33 +08:00
feat: improve app visibility settings and keyboard shortcuts
- Add ESC key navigation: return to previous view from full-screen panels - Sync tray menu with app visibility settings (hide disabled apps) - Add fnm (fast node manager) path support for CLI version scanning - Fix useModelState being overwritten when user is editing model fields - Fix EditProviderDialog showing stale data after save and reopen - Refactor AppSwitcher to use loop instead of repetitive buttons - Extract ToggleRow as reusable UI component - Add domUtils for checking text-editable elements
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
export function isTextEditableTarget(target: EventTarget | null): boolean {
|
||||
if (!(target instanceof HTMLElement)) return false;
|
||||
|
||||
const tagName = target.tagName;
|
||||
return (
|
||||
tagName === "INPUT" ||
|
||||
tagName === "TEXTAREA" ||
|
||||
tagName === "SELECT" ||
|
||||
target.isContentEditable
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user