Skip to content

Commit

Permalink
키패드 테스트8:
Browse files Browse the repository at this point in the history
  • Loading branch information
hnjung committed Aug 1, 2024
1 parent dd8567b commit a7418bc
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions MAWPUB/view/html/com/com/com/test.html
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ <h2 class="main-copy">

document.querySelector('#text1 > em').innerHTML = nowScrollTop;
document.querySelector('#text2 > em').innerHTML = (nowScrollTop + element.getBoundingClientRect().top) - (document.querySelector('#header').scrollHeight * 2);
document.querySelector('#text3 > em').innerHTML = windowHeight;
document.querySelector('#text3 > em').innerHTML = window.innerHeight;
}
}
commUiFocusInputText.init();
Expand Down Expand Up @@ -238,15 +238,17 @@ <h2 class="main-copy">
}

// Check keyboard status on window resize
window.addEventListener('resize', checkKeyboard);
window.addEventListener('resize', () => {
setTimeout(checkKeyboard, 100); // Delay to ensure resize event has been processed
});

// Additional event listeners for focus and blur events
inputField.addEventListener('focus', () => {
setTimeout(checkKeyboard, 50); // Delay to ensure resize event has been processed
setTimeout(checkKeyboard, 100); // Delay to ensure resize event has been processed
});

inputField.addEventListener('blur', () => {
setTimeout(checkKeyboard, 50);
setTimeout(checkKeyboard, 100);
});

</script>
Expand Down

0 comments on commit a7418bc

Please sign in to comment.