defano / wyldcard

A clone of Apple's HyperCard and HyperTalk scripting language.
https://github.com/defano/wyldcard/wiki
MIT License
117 stars 12 forks source link

Bug-Behavior compatibility, low: Command "f" does not type "find" into message box #111

Open ooper-zz opened 2 years ago

ooper-zz commented 2 years ago

This is relatively minor, but Apple's HC tools use it to programmatically allow users to find test in the stack using the message box.

HyperCard Tour.stack--find-beavior.zip

Here is a sample script (card 37 of the stack attached): on forward -- ∆ -- set lockMessages to true set the cursor to none show message at 19,3000 -- keep the message box out of view type "f" with commandKey set the cursor to none if the selectedText is not empty then type "x" with commandKey show msg at 19,211 -- old 19,266 set the cursor to none wait 30 put "Zebra" into theWord repeat with i = 1 to 5 set the cursor to none type (char i of theWord) wait 20 end repeat wait 30 ticks go next end forward

defano commented 2 years ago

Interesting bug... WyldCard does, actually, support Cmd-F to show the message box and enter find "" into it (and position the caret between the double-quotes).

What appears to be happening, though, is when another menu bar is shown (such as the one displayed when the script editor is active) its menu accelerator keys take precedent. Thus, after editing a script, the Cmd-F accelerator gets bound to showing the script editor's "Find..." dialog, not the message box.