fix: 修复vnc键盘输入无响应的问题
This commit is contained in:
@@ -149,6 +149,10 @@ const setupInputListeners = () => {
|
||||
if (activeElement && (activeElement.id === 'modal-width' || activeElement.id === 'modal-height')) {
|
||||
activeElement.blur();
|
||||
}
|
||||
// Ensure the VNC display element gets focus when clicked
|
||||
if (displayEl && typeof displayEl.focus === 'function') {
|
||||
displayEl.focus();
|
||||
}
|
||||
};
|
||||
displayEl.addEventListener('click', handleVncDisplayClick);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user