Commit graph

25 commits

Author SHA1 Message Date
Peter Goodhall
d7da056ce3 Enable Enter key to send sendText messages
Add Enter key handling for the CW free-text input (sendText) so pressing Enter sends the message. Replaced the old 'message' keypress handler in footer.php with a DOMContentLoaded listener that binds keydown on #sendText and calls sendMyMessage() (preventing default). Also added matching keydown handling in assets/js/winkey.js to call clickSend() when Enter is pressed on the sendText element.
2026-05-14 22:36:19 +01:00
Peter Goodhall
11ccec5901 Add CW speaker sidetone and UI controls
Introduce a client-side CW sidetone feature: add assets/js/cw-sidetone.js (AudioContext-based morse generator with persistence for enabled/frequency), and wire it into the UI and existing send flows. Include the new script in the footer and add speaker sidetone controls (enable checkbox + frequency slider) to the QSO view. Update winkey.js and websocket macro send handlers to compute a single textToSend, send it as before, and call window.cloudlogCwSidetone.playText(...) when available; also add defensive element existence checks. This provides audible sidetone feedback for CW macros and manual sends while preserving backwards compatibility when the sidetone module is not present.
2026-05-14 22:34:51 +01:00
Peter Goodhall
00aa3bcc0b Improve CW macro handling and error management
Enhanced the Qso controller with better error handling, input validation, and user/session checks for CW macro operations. Added a new cwmacros_test method for testing session data. Updated the footer JS to check for the message element before adding event listeners, preventing errors if the element is missing. Improved error handling in winkey.js when fetching macros to handle HTTP errors more gracefully.
2025-10-10 15:19:42 +01:00
Peter Goodhall
ad9e7b04e0 Improve CW macro saving and UI feedback
Enhanced macro saving with better input sanitization, error handling, and user feedback in Qso.php and Winkey.php. Updated modal forms to display save responses in a dedicated area. Improved JavaScript to handle default macro values and update button labels more robustly. Removed unnecessary WebSocket polling for CW speed in the footer.
2025-10-10 14:54:50 +01:00
Peter Goodhall
3204ffd531 Improve Winkey UI visibility and layout
Added dynamic visibility for the Winkey panel based on mode selection and protocol, ensuring it only appears in CW mode and over HTTPS. Refactored the Winkey UI layout for better structure and usability, including grouped function keys, improved speed control, message input, and status/message log presentation.
2025-10-06 14:45:31 +01:00
Peter Goodhall
34510470ce feat: Add auto-reconnect functionality for Web Serial API
- Implement autoReconnect() function to automatically reconnect to previously authorized serial devices on page load
- Use navigator.serial.getPorts() to retrieve previously connected ports
- Add graceful error handling for auto-reconnect failures
- Improve disconnect() function with null check for port
- Eliminates need for manual reconnection after page refresh
- Maintains backward compatibility with existing functionality

Fixes issue where Web Serial connection was lost on page refresh, requiring users to manually reconnect their devices each time.
2025-05-28 14:31:22 +01:00
int2001
f4e2825730
removed eventhandler Neither button nor function exists 2023-10-04 08:28:45 +00:00
Peter Goodhall
84c808afa0 [Winkey] See if this changes changing 2023-08-07 13:56:29 +01:00
Peter Goodhall
4a60e002b8 hide cw buttons if not connected 2023-08-01 17:53:40 +01:00
Peter Goodhall
abd04d581a no idea if this works 2023-08-01 17:48:31 +01:00
Peter Goodhall
569ca82183 Oops meant DTR 2023-08-01 17:18:34 +01:00
Peter Goodhall
e6ee8cd9e2 try turning on rts 2023-08-01 17:17:31 +01:00
Peter Goodhall
3d14dde83a more code removed 2023-08-01 17:07:29 +01:00
Peter Goodhall
1ea9356923 test 2023-08-01 16:55:31 +01:00
Peter Goodhall
b79229f326 Hide winkey buttons 2023-08-01 16:37:57 +01:00
Peter Goodhall
59689f80cc Only show CW functions if using SSL and only when mode is CW 2023-08-01 16:18:56 +01:00
Peter Goodhall
3e43e613c2 Macros now work using the F keys 2023-08-01 16:05:30 +01:00
Peter Goodhall
b13f2b032c Implement macro shortcuts 2023-08-01 14:49:43 +01:00
Peter Goodhall
ba89628b8c Load the macros into the buttons 2023-08-01 14:07:11 +01:00
Peter Goodhall
65b780e2f3 [CW Macros] Database Schema Created 2023-06-02 15:43:53 +01:00
Peter Goodhall
8dcd74c978 stop making life hard 2023-05-15 16:52:59 +01:00
Peter Goodhall
af6ba5f547 onclick 2023-05-15 14:46:14 +01:00
Peter Goodhall
6f93ac6db0 Update winkey.js 2023-05-15 14:44:07 +01:00
Peter Goodhall
ac5bb52cd4 test button 2023-05-15 14:42:53 +01:00
Peter Goodhall
fda30f424c added winkey js 2023-05-15 14:28:14 +01:00