Application functions properly with only the Focus Keys

Title: Application functions properly with only the Focus Keys

Number: 120

Specification reference: (Sections 6.3.4 and 6.3.4.1 page 13)
“An application should be designed to function properly with only the Focus Keys. An application SHALL reserve other keys only while in focus and SHALL release all such keys when focus is lost or a release request is received."

Applications SHALL only reserve the Focus Keys events while they are in focus. When an application detects that it no longer has focus, it SHALL release any reservations on these events.”

Assertions:
1. When the application has focus is the only time it attempts to reserve the focus keys.
2. When an application detects that it no longer has focus it releases any reservations on these events.

Test Procedures:
1. Manually inspect the source code.
2. Use Java reflection API or other tools to inspect the application .class files

Expected result
1. The only paths in the code which lead to key reservation are found when the application is in the focused state.