Make ASCII control characters ^[, ^\, ^], ^^, and ^_ work on Qt, at least partly. Mainly for ^[ to be treated as ESC, which works if you're aborting a count on the map but doesn't cancel out of menus [yet?]. I didn't attempt to make ^@ send NUL. Also, fix the hardcoded macros (activated by F1: rest 100 turns, F2: search 20 times, and Tab: ^A to do-again). The first two sent 'n' before the count so wouldn't work as intended with number_pad off, and the third was executing twice as if Tab sent two ^A's instead of just one. Resting and searching might have been getting duplicated too; I don't know how to simulate the relevant keys. (I temporarily swapped definitions for F2 and Tab to test the number_pad fix but hadn't done that earlier when I discovered the Tab bug.)
22 KiB
22 KiB