This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 108710 - A11Y report - page Stylesheet property - can't get focus by keyboard
Summary: A11Y report - page Stylesheet property - can't get focus by keyboard
Status: CLOSED FIXED
Alias: None
Product: obsolete
Classification: Unclassified
Component: visualweb (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Pegah Sarram
URL:
Keywords: A11Y
Depends on:
Blocks:
 
Reported: 2007-07-03 02:29 UTC by _ krystyna
Modified: 2007-08-15 15:26 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
a11y log (901 bytes, application/octet-stream)
2007-08-15 15:25 UTC, Lark Fitzgerald
Details

Note You need to log in before you can comment on or make changes to this bug.
Description _ krystyna 2007-07-03 02:29:08 UTC
NB trunk build 07020000
XP
JDK1.6.0_02

The default property dialog for the stylesheet property is a dialog that contains "/resources/stylesheet.css" 
however, this dialog initially has no focus. There is no text insertion caret in the top textfield. It "appears" that 
the OK button has focus , but pressing ENTER or ESC has no effect. Try to tab traverse, nothing happens. Press Alt key 
to see mnemonics for the Cancel key -- on windows it does not appear (it does on Solaris). 

Once the mouse is used inside the textfield, then tab traverse is operational.
Comment 1 Winston Prakash 2007-07-10 02:02:12 UTC
Why this is a P1 issue?
Comment 2 _ krystyna 2007-07-10 02:14:25 UTC
This is the page stylesheet property I am talking about. (Click on the page background...)
Comment 3 Lark Fitzgerald 2007-07-10 15:53:53 UTC
Bug guidelines can be found here:
http://qa.netbeans.org/bugzilla/bug_priority_guidelines.html

No focus = P1
Comment 4 Winston Prakash 2007-07-10 18:30:28 UTC
I agree, no focus is P1. Works OK on my Mac machine, but doesn't work on Windows Vista. 
Not sure if it is a JDK issue. This dialog was not changed since Creator 1.0
Comment 5 _ krystyna 2007-07-10 19:09:38 UTC
I also tested on Solaris - with jdk1.6.0_01 - there is no focus.
Comment 6 _ krystyna 2007-07-10 21:51:14 UTC
Tested nb installer 07091200 with JDK1.5.0_11 on Windows and *did* have focus. 
Likely to be related to JDK.
Comment 7 Pegah Sarram 2007-07-12 22:54:26 UTC
I tested with 1.5.0_11 on Vista and the focus doesn't work. The issue seems to be with the File tab. If you remove it,
the text field gets the focus. Winston asked me to assign it back to him.
Comment 8 Jayashri Visvanathan 2007-07-18 18:21:32 UTC
Pegah,
  Can you talk to Sandip and find out if anything can be done about this issue ?
thanks
Comment 9 Pegah Sarram 2007-07-18 18:25:17 UTC
I spoke with Sandip yesterday, and he suggested a fix. I'll try to apply it today to see if it works.
Comment 10 Pegah Sarram 2007-07-18 23:00:02 UTC
The fix was to override addNotify() and set the focus on text field there.

Checking in StandardUrlPanel.java;
/cvs/visualweb/propertyeditors/src/org/netbeans/modules/visualweb/propertyeditors/StandardUrlPanel.java,v  <-- 
StandardUrlPanel.java
new revision: 1.4; previous revision: 1.3
done
Comment 11 Winston Prakash 2007-08-09 22:18:05 UTC
Nice and simple fix. This point did not occur to me then!
Comment 12 Lark Fitzgerald 2007-08-15 15:24:20 UTC
Verified using
Product Version: NetBeans IDE Dev (Build 200708150000)
Java: 1.5.0_12; Java HotSpot(TM) Client VM 1.5.0_12-b04 
System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb)
Woodstock 4.1: 200708131255 (build 10 RC1)

log of a11y output attached
Comment 13 Lark Fitzgerald 2007-08-15 15:25:30 UTC
Created attachment 46664 [details]
a11y log