mirror of
https://github.com/siteboon/claudecodeui.git
synced 2026-03-16 19:37:24 +00:00
feat: add terminal shortcuts panel for mobile (#411)
* feat: add terminal shortcuts panel for mobile users Slide-out panel providing touch-friendly shortcut buttons (Esc, Tab, Shift+Tab, Arrow Up/Down) and scroll-to-bottom for the terminal. Integrates into the new modular shell architecture by exposing terminalRef and wsRef from useShellRuntime hook and reusing the existing sendSocketMessage utility. Includes localization keys for en, ja, ko, and zh-CN. * fix: replace dual touch/click handlers with unified pointer events Prevents double-fire on touch devices by removing onTouchEnd handlers and using a single onClick for all interactions (mouse, touch, keyboard). onPointerDown with preventDefault handles focus steal prevention. Also clears pending close timer before scheduling a new one to avoid stale timeout overlap. Addresses CodeRabbit review feedback on PR #411. --------- Co-authored-by: Haileyesus <118998054+blackmammoth@users.noreply.github.com>
This commit is contained in:
@@ -83,6 +83,21 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"terminalShortcuts": {
|
||||
"title": "Terminal Shortcuts",
|
||||
"sectionKeys": "Keys",
|
||||
"sectionNavigation": "Navigation",
|
||||
"escape": "Escape",
|
||||
"tab": "Tab",
|
||||
"shiftTab": "Shift+Tab",
|
||||
"arrowUp": "Arrow Up",
|
||||
"arrowDown": "Arrow Down",
|
||||
"scrollDown": "Scroll Down",
|
||||
"handle": {
|
||||
"closePanel": "Close shortcuts panel",
|
||||
"openPanel": "Open shortcuts panel"
|
||||
}
|
||||
},
|
||||
"mainTabs": {
|
||||
"label": "Settings",
|
||||
"agents": "Agents",
|
||||
|
||||
@@ -83,6 +83,21 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"terminalShortcuts": {
|
||||
"title": "ターミナルショートカット",
|
||||
"sectionKeys": "キー",
|
||||
"sectionNavigation": "ナビゲーション",
|
||||
"escape": "Escape",
|
||||
"tab": "Tab",
|
||||
"shiftTab": "Shift+Tab",
|
||||
"arrowUp": "上矢印",
|
||||
"arrowDown": "下矢印",
|
||||
"scrollDown": "下にスクロール",
|
||||
"handle": {
|
||||
"closePanel": "ショートカットパネルを閉じる",
|
||||
"openPanel": "ショートカットパネルを開く"
|
||||
}
|
||||
},
|
||||
"mainTabs": {
|
||||
"label": "設定",
|
||||
"agents": "エージェント",
|
||||
|
||||
@@ -83,6 +83,21 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"terminalShortcuts": {
|
||||
"title": "터미널 단축키",
|
||||
"sectionKeys": "키",
|
||||
"sectionNavigation": "탐색",
|
||||
"escape": "Escape",
|
||||
"tab": "Tab",
|
||||
"shiftTab": "Shift+Tab",
|
||||
"arrowUp": "위쪽 화살표",
|
||||
"arrowDown": "아래쪽 화살표",
|
||||
"scrollDown": "아래로 스크롤",
|
||||
"handle": {
|
||||
"closePanel": "단축키 패널 닫기",
|
||||
"openPanel": "단축키 패널 열기"
|
||||
}
|
||||
},
|
||||
"mainTabs": {
|
||||
"label": "설정",
|
||||
"agents": "에이전트",
|
||||
|
||||
@@ -83,6 +83,21 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"terminalShortcuts": {
|
||||
"title": "终端快捷键",
|
||||
"sectionKeys": "按键",
|
||||
"sectionNavigation": "导航",
|
||||
"escape": "Escape",
|
||||
"tab": "Tab",
|
||||
"shiftTab": "Shift+Tab",
|
||||
"arrowUp": "上箭头",
|
||||
"arrowDown": "下箭头",
|
||||
"scrollDown": "滚动到底部",
|
||||
"handle": {
|
||||
"closePanel": "关闭快捷键面板",
|
||||
"openPanel": "打开快捷键面板"
|
||||
}
|
||||
},
|
||||
"mainTabs": {
|
||||
"label": "设置",
|
||||
"agents": "智能体",
|
||||
|
||||
Reference in New Issue
Block a user