Skip to content

Commit 6648e43

Browse files
committed
Merge branch 'main' into osnr/checkerboard-calibration
2 parents ad63e89 + 5c27041 commit 6648e43

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

README.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -426,9 +426,10 @@ and then future holds with that key, `ball position`, will
426426
overwrite this statement but not override different holds with
427427
different keys
428428

429-
(there's currently no way to overwrite state from other pages, but we
430-
could probably add a way to provide an absolute key that would allow
431-
that if it was useful.)
429+
You can overwrite another program's Hold with the `on` parameter, like
430+
`Hold (on 852) { ... }` (if the Hold is from page 852) or `Hold (on
431+
virtual-programs/example.folk) { ... }` (if the Hold is from the
432+
example.folk virtual program)
432433

433434
### Every time
434435

live-build/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Builds a bootable Folk OS image.
44

55
To run Folk on a PC, [download the latest pre-built Folk image for USB
66
stick from the Releases
7-
page.](https://github.com/FolkComputer/folk-live-build/releases)
7+
page.](https://github.com/FolkComputer/folk/releases)
88
Follow the instructions there.
99

1010
---

virtual-programs/editor.folk

-1
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,6 @@ When /page/ is a keyboard with path /kbPath/ /...anything/ & /page/ is an editor
200200
set timestamp [dict get $options timestamp]
201201

202202
if {$timestamp > ($startTime * 1000) && ($keyState == "down" || $keyState == "repeat")} {
203-
# handle printable (character) input
204203
if {[dict exists $options printable]} {
205204
Hold "cursor$kbPath" {
206205
Claim the $kbPath cursor is [updateCursor $cursor {x 1}]

virtual-programs/keyboard.folk

+2-1
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,8 @@ foreach keyboard $keyboardDevices {
122122

123123
set now [clock milliseconds]
124124
set options [dict create timestamp $now]
125-
if {$keychar ne ""} {
125+
set modKeyNotHeld [expr {$mods <= 1}] ;# excluding Shift
126+
if {$keychar ne "" && $modKeyNotHeld} {
126127
dict set options printable $keychar
127128
}
128129
Assert keyboard $keyboard claims key $key is $keyState with {*}$options

0 commit comments

Comments
 (0)