From 2dec1a6f82257584c5d465f0f45349a83adf804c Mon Sep 17 00:00:00 2001 From: david Date: Fri, 2 Aug 2024 15:12:49 +1000 Subject: [PATCH] Pass through fn keys --- src/demo/test/test_min_all.txt | 1 + src/js/inputoutput.js | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/demo/test/test_min_all.txt b/src/demo/test/test_min_all.txt index 9555be5..e5a96dc 100644 --- a/src/demo/test/test_min_all.txt +++ b/src/demo/test/test_min_all.txt @@ -6,6 +6,7 @@ homepage www.polyomino.com verbose_logging debug +debug_switch input ======== TAGS diff --git a/src/js/inputoutput.js b/src/js/inputoutput.js index d1a86b4..833148c 100644 --- a/src/js/inputoutput.js +++ b/src/js/inputoutput.js @@ -1141,6 +1141,8 @@ function checkKey(e,justPressed) { if (e&&(e.ctrlKey || e.metaKey|| e.altKey)){ return; } + if (e.keyCode >= 0x70 && e.keyCode <= 0x83) // function keys + return; var inputdir=-1; switch(e.keyCode) {