When DomRenderer focus,render the cursor line.
This commit is contained in:
@@ -247,6 +247,7 @@ if (document.location.pathname === '/test') {
|
||||
document.getElementById('bce').addEventListener('click', coloredErase);
|
||||
addVtButtons();
|
||||
initImageAddonExposed();
|
||||
testEvents();
|
||||
}
|
||||
|
||||
function createTerminal(): void {
|
||||
@@ -1335,3 +1336,8 @@ function initImageAddonExposed(): void {
|
||||
canvas?.toBlob(data => window.open(URL.createObjectURL(data), '_blank'));
|
||||
});
|
||||
}
|
||||
|
||||
function testEvents(): void {
|
||||
document.getElementById('event-focus').addEventListener('click', ()=> term.focus());
|
||||
document.getElementById('event-blur').addEventListener('click', ()=> term.blur());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user