Community
Participate
Working Groups
- Load SWT Cocoa and the SWT examples from HEAD. - Run org.eclipse.swt.examples.accessibility.AccessibleShapesExample - turn on VoiceOver - type the TAB key to give focus to the various shapes Note that the shapes report their name twice. In Accessible.getDescription(), if there isn't any description, then we should just return, instead of asking the application for a name.
Created attachment 115613 [details] patch to not return name in getDescription Here's a patch.
OK... the patch works properly from a VoiceOver point of view, but it generates exceptions because Cocoa thinks SWTView should implement getDescription. But there's a bigger problem here - why is everything being delegated to the super if the accessible doesn't implement it? We should be answering more "nulls", i.e. doing less work. In general, just delegate back to Cocoa instead of trying to see if some super will handle the request.
Created attachment 115623 [details] new patch to not return name in getDescription Ignore the discussion in comment 2 - I will open a new bug for that. In the meantime, here is a patch that simply fixes this bug (name spoken twice), and doesn't try to delete more code at the same time <g>.
Fixed >= 20081022.