commit 7de854ed4eeb00cc1338d901391a8028b2ba899f
parent 40ccc4aebbc6e2e7c82289e023a9055f8b565a56
Author: Hunter
Date: Fri, 25 Jul 2025 22:39:59 -0400
code cleanup
Diffstat:
1 file changed, 0 insertions(+), 18 deletions(-)
diff --git a/index.html b/index.html
@@ -431,9 +431,6 @@
// Focus the editor
editorView.focus();
- // Setup mobile keyboard detection
- setupMobileKeyboardDetection();
-
// Global keydown handler for Cmd+F toggle
document.addEventListener('keydown', function(e) {
if ((e.metaKey || e.ctrlKey) && e.key === 'f') {
@@ -475,21 +472,6 @@
} else {
window.addEventListener('resize', handleViewportChange);
}
-
- // Also listen for focus/blur events on the editor for additional reliability
- function setupMobileKeyboardDetection() {
- if (!isMobileDevice() || !editorView) return;
-
- const editorElement = editorView.dom;
-
- editorElement.addEventListener('focusin', () => {
- setTimeout(handleViewportChange, 300); // Delay to allow keyboard animation
- });
-
- editorElement.addEventListener('focusout', () => {
- setTimeout(handleViewportChange, 300); // Delay to allow keyboard animation
- });
- }
// Initialize when page loads
initializeCodeMirror();