diff --git a/app.js b/app.js index 9dcd195..487e36e 100644 --- a/app.js +++ b/app.js @@ -3195,4 +3195,20 @@ function addAnticipo() { } -document.addEventListener('DOMContentLoaded', initializeApp); +// Detectar sistema operativo y mostrar shortcut correcto +function setCorrectClearShortcut() { + const shortcutElement = document.getElementById('clear-shortcut'); + if (shortcutElement) { + const isMac = navigator.platform.toUpperCase().indexOf('MAC') >= 0; + if (isMac) { + shortcutElement.textContent = 'Cmd + Shift + R'; + } else { + shortcutElement.textContent = 'Ctrl + Shift + R'; + } + } +} + +document.addEventListener('DOMContentLoaded', () => { + initializeApp(); + setCorrectClearShortcut(); +}); diff --git a/index.html b/index.html index d1c2618..eeb9db0 100644 --- a/index.html +++ b/index.html @@ -343,6 +343,13 @@ Generar Venta + + +
+ 💡 Para limpiar: + Ctrl + Shift + R + +
@@ -768,6 +775,6 @@
- + \ No newline at end of file diff --git a/styles.css b/styles.css index 028b1fc..734cfc7 100644 --- a/styles.css +++ b/styles.css @@ -1927,6 +1927,34 @@ table tbody tr:hover { font-size: 12px; } +/* Tip para limpiar formulario */ +.clear-form-tip { + text-align: center; + margin-top: 12px; + padding: 8px 12px; + background: #f8f9fa; + border-left: 3px solid #007bff; + border-radius: 4px; + color: #495057; + font-size: 12px; +} + +.clear-form-tip strong { + color: #212529; +} + +#clear-shortcut { + display: inline-block; + background: #e9ecef; + padding: 2px 6px; + border-radius: 3px; + font-family: 'Courier New', monospace; + font-weight: bold; + color: #343a40; + border: 1px solid #ced4da; + margin-left: 4px; +} + /* --- Checkout Panel --- */ .checkout-panel { background: #fff;