mirror of
https://github.com/Ark0N/Codeman.git
synced 2026-10-08 08:29:42 +02:00
fix: exclude xterm terminal from keyboard scroll handling
- Terminal has hidden textarea that was triggering scrollIntoView - Exclude elements inside .xterm or .terminal-container - Fixes scroll being broken when tapping terminal Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -204,9 +204,15 @@ const KeyboardHandler = {
|
||||
});
|
||||
},
|
||||
|
||||
/** Check if element is an input that triggers keyboard */
|
||||
/** Check if element is an input that triggers keyboard (excludes terminal) */
|
||||
isInputElement(el) {
|
||||
if (!el) return false;
|
||||
|
||||
// Exclude xterm.js terminal inputs (they handle their own scroll)
|
||||
if (el.closest('.xterm') || el.closest('.terminal-container')) {
|
||||
return false;
|
||||
}
|
||||
|
||||
const tagName = el.tagName?.toLowerCase();
|
||||
// Exclude type=range, type=checkbox, type=radio (don't trigger keyboard)
|
||||
if (tagName === 'input') {
|
||||
|
||||
Reference in New Issue
Block a user