wyldcard icon indicating copy to clipboard operation
wyldcard copied to clipboard

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

Open ooper-zz opened this issue 2 years ago • 1 comments

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

ooper-zz avatar May 26 '22 00:05 ooper-zz

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.

defano avatar May 28 '22 14:05 defano