Closed Bug 166199 Opened 22 years ago Closed 14 years ago

Mozilla doesn't shift keyboard focus to dialog window in AppleScript

Categories

(SeaMonkey :: UI Design, defect)

PowerPC
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED EXPIRED

People

(Reporter: wjshack, Assigned: samir_bugzilla)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en-US; rv:1.1) Gecko/20020826
Build Identifier: Mozilla/5.0 (Macintosh; U; PPC Mac OS X; en-US; rv:1.1) Gecko/20020826

When setting up an Applescript that requires user input via a dialog window, the
keyboard focus does not shift to the dialog window. Although the cursor is
blinking and looks ready to accept input, no keyboard input is possible.  Sample
script:

tell application "Mozilla"
	activate
	display dialog "Enter the word" default answer "" buttons {"OK", "Cancel"}
default button "OK"
	set dialogReply to the result
	set theButton to the button returned of the dialogReply
	set theWord to the text returned of dialogReply
	if theButton = "OK" then
		set theURL to "http://www.m-w.com/cgi-bin/dictionary?book=Dictionary&va=" &
theWord
		GetURL theURL inside the front window
	end if
end tell

Reproducible: Always

Steps to Reproduce:
1.
2.
3.



Expected Results:  
Mozilla should let user type into dialog window, accept input and carry out script.
Confirmed using FizzillaCFM/2002083017 on 10.1.5.
Blocks: 125419
Status: UNCONFIRMED → NEW
Ever confirmed: true
Summary: Mozilla doesn't shift keyboard focus to dialog window in Applescript → Mozilla doesn't shift keyboard focus to dialog window in AppleScript
This looks like the same bug I'm running into where my
plug-in brings up a dialog box and will accept mouse 
clicks but no keyboard input.

When I modified the GetURL lin in the Applescript example to:
   GetURL theURL 
it worked fine with Safai(B2), and Internet Explorer (5.2.2) and iCab (2.9.1)
The problem is that Netscape is still catching the keyboard events, 
as you can tell by using the up/down keys and watching the page 
under the dialog scroll.

It's a frustrating bug because there's no real work-around.
Bruce Barrett
Product: Core → Mozilla Application Suite
MASS-CHANGE:
This bug report is registered in the SeaMonkey product, but has been without a comment since the inception of the SeaMonkey project. This means that it was logged against the old Mozilla suite and we cannot determine that it's still valid for the current SeaMonkey suite. Because of this, we are setting it to an UNCONFIRMED state.

If you can confirm that this report still applies to current SeaMonkey 2.x nightly builds, please set it back to the NEW state along with a comment on how you reproduced it on what Build ID, or if it's an enhancement request, why it's still worth implementing and in what way.
If you can confirm that the report doesn't apply to current SeaMonkey 2.x nightly builds, please set it to the appropriate RESOLVED state (WORKSFORME, INVALID, WONTFIX, or similar).
If no action happens within the next few months, we move this bug report to an EXPIRED state.

Query tag for this change: mass-UNCONFIRM-20090614
Status: NEW → UNCONFIRMED
MASS-CHANGE:
This bug report is registered in the SeaMonkey product, but still has no comment since the inception of the SeaMonkey project 5 years ago.

Because of this, we're resolving the bug as EXPIRED.

If you still can reproduce the bug on SeaMonkey 2 or otherwise think it's still valid, please REOPEN it and if it is a platform or toolkit issue, move it to the according component.

Query tag for this change: EXPIRED-20100420
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago
Resolution: --- → EXPIRED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: