Menu and Keyboard Shortcut Design

From OpenPetra Wiki
Revision as of 22:41, 10 April 2014 by Alanjfpaterson (talk | contribs) (Created page with ''''This page is still under development and is still being discussed!''' == Menus == Menus in Open Petra should follow a consistent design that means that users have the same ex…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This page is still under development and is still being discussed!

Menus

Menus in Open Petra should follow a consistent design that means that users have the same experience whichever screen they are working on. Most screens in Open Petra are auto-generated from templates which include a basic menu structure. This consists of

  • a &File menu that contains items to &Save, &Print and &Close
  • an &Edit menu that contains items to Filte&r and &Find
  • a &Help menu that contains items for &OpenPetra Help, Bug &Report, &About OpenPetra and &The Development Team

Some advanced screens may add one or two more menus relating to the work that screen does. If so they must use different letters for the Alt key combination from the ones already reserved.

An additional factor to consider is that most screens have buttons for mouse users to complete the most common tasks. These buttons should also have Alt key functionality but the key letters must be chosen so as not to conflict with any top level menu item.

The following keyboard combinations are reserved and cannot be used for any other purpose - even on screens that do not have the specified functionality. So even if a screen does not have 'Print' you must not use Alt+F, P for any other purpose.

  • Alt+F, S always means 'Save'
  • Alt+F, P always means 'Print'
  • Alt+F, C always means 'Close'. Other ways of closing a screen are Alt+F4 (on Windows) and the ESC key (if the user option is enabled).
  • Alt+E, R always means 'Show Filter Panel' and bring the Filter tab to the top. (This is not the same as Alt+R which toggles the filter/Find panel on and off. The Find tab will be displayed if it was the active tab beforehand.) Focus always moves to the first control in the Filter panel.
  • Alt+E, F always means 'Show Find Panel' and bring the Find tab to the top. Focus always moves to the first control in the Find panel.

Keyboard Shortcuts

Keyboard shortcuts are an even more powerful way of executing actions since they usually achieve their result with a single key press rather than a combination. Typically we use shortcuts for the commonest tasks in a user's workflow to enable them to make the most of keyboard input.

We have one very important rule about shortcut keys ...

A particular shortcut key performs the same action throughout the whole OpenPetra application.

This gives rise to another important corollary.

If a screen does not require the particular action that is usually performed by a shortcut key, the screen is not permitted to use the shortcut for a different task.

Because shortcut keys are so powerful and because of the rule(s) above, we do not assign shortcut keys The tables below lists all the shortcut keys implemented in OpenPetra.

Standard Windows Shortcuts

These standard shortcuts of course continue to work in Open Petra.

Shortcut Description Focus Comment
Ctrl+C Copy text to the clipboard No change Applies to controls that have text
Ctrl+X Cut text to the clipboard No change Applies to controls that have text
Ctrl+V Paste text from the clipboard No change Applies to controls that have text

Filter and Find

These shortcuts only apply to screens that have a Filter/Find panel associated with a grid.

Shortcut Description Focus Comment
Ctrl+F Show the Filter/Find panel and Activate the Find tab Focus the first control on the Find tab
Ctrl+R Show the Filter/Find panel and activate the Filter tab Focus the first control on the Filter tab
F3 Activate the Filter/Find panel, show the Find tab and find the next instance of the 'Find' panel search criteria The focus is on the grid so that the user can press the ENTER key if the found row is the one that is to be 'opened'.
Shift+F3 Activate the Filter/Find panel, show the Find tab and find the previous instance of the 'Find' panel search criteria The focus is on the grid so that the user can press the ENTER key if the found row is the one that is to be 'opened'.

Navigation

These shortcuts only apply to screens that have a grid.

Shortcut Description Focus Comment
Ctrl+Home Go to the first record in the grid and show its details. For screens that have a details panel the focus moves to the first editable control on that panel. Otherwise the focus is on the grid.
Ctrl+PgUp Go to the previous record in the grid and show its details. For screens that have a details panel the focus moves to the first editable control on that panel. Otherwise the focus is on the grid.
Ctrl+PgDn Go to the next record in the grid and show its details. For screens that have a details panel the focus moves to the first editable control on that panel. Otherwise the focus is on the grid.
Ctrl+End Go to the last record in the grid and show its details. For screens that have a details panel the focus moves to the first editable control on that panel. Otherwise the focus is on the grid.