about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--305keyboard.subx4
1 files changed, 4 insertions, 0 deletions
diff --git a/305keyboard.subx b/305keyboard.subx
index 35a200b3..01dc9783 100644
--- a/305keyboard.subx
+++ b/305keyboard.subx
@@ -126,6 +126,9 @@ $enable-keyboard-type-mode:end:
 #   greater than 0x7f)
 # - in escapes every byte will have a 0 in the MSB
 # the two categories overlap only when the first/lowest byte is 0x1b or 'esc'
+#
+# Only use this in immediate mode; in type (typewriter) mode 4 bytes may get
+# parts of multiple keys.
 read-key-from-real-keyboard:  # -> result/eax: grapheme
     # . prologue
     55/push-ebp
@@ -151,6 +154,7 @@ $read-key-from-real-keyboard:end:
     5d/pop-to-ebp
     c3/return
 
+# use this in type mode
 read-line-from-real-keyboard:  # in: (addr stream byte)
     # . prologue
     55/push-ebp