[Contesting] Enter logs QSO when sent exchange field is active.

This commit is contained in:
Andreas 2020-12-25 16:57:04 +01:00
parent 2fb0ff53db
commit d80e5914ed

View File

@ -44,8 +44,12 @@ document.onkeyup = function(e) {
// ALT-W wipe
if (e.altKey && e.which == 87) {
reset_log_fields();
// CTRL-Enter logs QSO
} else if ((e.keyCode == 10 || e.keyCode == 13) && (e.ctrlKey || e.metaKey)) {
logQso();
// Enter in sent exchange logs QSO
} else if((e.which == 13) && ($(document.activeElement).attr("id") == "exch_recv")) {
logQso();
} else if (e.which == 27) {
reset_log_fields();
// Space to jump to either callsign or sent exchange