Analysis
Overview
This task is all about making Sophie2.0 reader simpler and more comfortable to use.
Task requirements
- Make sure that there are intuitive keyboard shortcuts to all menus and most often used commands.
Menu keyboard shortcuts:
Alt+F - open file menu
Alt+E - open edit menu
Alt+W - open window menu
Alt+H - open help menu
File menu keyboard shortcuts
Ctrl+O - open file
command/control-shift-S saves a copy of the current Sophie book, prompting for a filename.
Ctrl+W - close file
Ctrl+Q - quits program.
- The shortcuts should be context-sensitive
Arrow keys - If in text, the cursor is moved accordingly and if the page is selected the left and right arrows go forwards or backwards in pages and up and down arrows manage the zoom level.
Space bar – if the page is selected switches to the next page, if a video is selected the space bar plays/pauses it.
Tab - the focus moves from the current component to the next component that can accept the focus. If a container is given focus it passes the focus on to its first focusable child.
Ctrl-Tab - traverses to the next focus cycle.
Ctrl-Shift-Tab - traverses to the previous focus cycle.
Task result
The result of this task is source code.
Implementation idea
Use the Swing features that support keyboard shortcuts and focus management.
How to demo
- Use the space to turn a page, and then use the tab to move the focus to a stopped video. Use the space bar to play it.
- Use the keyboard shortcuts to open menus and execute commands.
Design
Implementation
(Implementation results should be described and linked here (from the wiki or the repository))
Testing
Comments
(Write comments for this or later revisions here.)