Διάδραση πληκτρολογίου

10.2.1. Πλοήγηση πληκτρολογίου

A well-designed keyboard user interface plays a key role when you are designing applications. Many power-users prefer to perform most operations with the keyboard rather than the mouse. Visually-impaired users can navigate software more effectively using the keyboard, because using the mouse depends on visual feedback of the mouse pointer location. And mobility impairments can prevent a user from successfully navigating using the mouse, because of the fine motor control skills required.

Make all mouse actions available from the keyboard, and include keyboard access to all toolbars, menus, links and buttons. Every function your application provides must be available using the keyboard alone. Hiding your mouse while you test your application is a great way to test this!

Φιγούρα 10-4Διάλογος και μενού, με μερικά πλήκτρα συντόμευσης και πρόσβασης να υποδεικνύονται

Most functionality is easy to make available from the keyboard, by using access keys and shortcut keys, and the toolkit's built-in keyboard navigation features. All controls with labels should have access keys, and frequently-used menu items should be assigned shortcut keys. However, operations that rely on drag-and-drop, for example, may require more thought to make them keyboard accessible.

Κατευθυντήριες γραμμές
  • Provide efficient keyboard access to all application features. In particular, ensure every control on menus and in dialogs are directly focusable using access keys or shortcut keys.
  • Use a logical keyboard navigation order. When navigating around a window with the Tab key, keyboard focus should move between controls in a predictable order. In Western locales, this is normally left to right and top to bottom.
  • Ensure correct tab order for controls whose enabled state is dependent on check box, radio button or toggle button state. When such a button is selected, all its dependent controls should be enabled, and all the dependent controls of any other button in the group should be disabled. When the user selects a check box, radio button or toggle button that has dependent controls, do not automatically give focus to the first dependent control, but instead leave the focus on the button.
  • Do not over-ride existing system-level accessibility features. For example, the MouseKeys feature in the GNOME Keyboard Accessibility preferences dialog allows mouse movement and button clicks to be simulated using the keypad. Therefore you cannot add features to your application that can only be accessed by pressing keys on the keypad, as users relying on the MouseKeys feature will not be able to use them.
  • Ensure that any text that can be selected with the mouse can also be selected with the keyboard. This is a convenience for all users, but especially for those for whom fine control of the mouse is difficult.
  • Ensure that objects that can be resized or moved by drag and drop can also be resized or moved with the keyboard. For example, icons and windows on the desktop. Where precision sizing and placement is potentially important, e.g. shapes in a diagram, also consider providing a dialog into which you can type co-ordinates, or a means of snapping objects to a user-definable grid.
  • Do not use general navigation functions to trigger operations. For example, do not use basic Tab keyboard navigation in a dialog to activate any actions associated with a control.
  • Show keyboard-invoked menus, windows and tooltips near the object they relate to, but without hiding or obscuring the object to which the menu or tooltip refers,. In GNOME, popup menus are activated with Shift+F10, and tooltips with Ctrl+F1.
  • Provide more than one method to perform keyboard tasks where possible. Users may find some keys and key combinations easier to use than others.
  • Do not assign awkward reaches to frequently performed keyboard operations. Some people may only be able to use one hand on the keyboard, so shortcuts that can be easily used with one hand are preferable for common operations. In any case, having to frequently perform long or difficult reaches on the keyboard can increase muscle strain for all users, increasing the risk of pain or injury.
  • Do not require repetitive use of simultaneous keypresses. Some users are only able to press and hold one key at a time. Assistive technologies such as the GNOME Keyboard Accessibility preferences dialog do allow users to press the keys sequentially rather than simultaneously, but this of course means the operation will take longer for them.

10.2.2. Επιλογή πλήκτρων πρόσβασης

Give all labelled components an access key (underlined letter), with the exception of toolbar controls which would use up too many access key combinations.

Choose access keys to be as easy to remember as possible. Normally, this means using the first letter of the label. However, in complex windows, the choice can become more difficult. Here are some simple rules:

  1. Assign access keys to the most frequently-used controls first. If it's not clear which controls will be the most frequently used, assign access keys from left to right, top to bottom (for Western locales).
  2. Use the first letter of the label, or of one of its other words if it has more than one. If another letter provides a better association (e.g. "x" in Extra Large) however, consider using that letter instead.
  3. If the first letter is not available, choose an easy to remember consonant from the label, for example, "p" in Replace.
  4. If no such consonants are available, choose any available vowel from the label.

If duplication of access keys in a window is unavoidable, you should still refrain from duplicating the access keys for any of these buttons that appear in the same window: OK, Cancel, Close, Apply or Help.

Also, it is better not to assign access keys to "thin" letters (such as lowercase i or l), or letters with descenders (such as lowercase g or y) unless it is unavoidable. The underline does not show up very well on those characters in some fonts.

Applications using a non-Roman writing system in conjunction with a standard keyboard can have control labels prefixed with Roman characters as access keys.

10.2.3. Επιλογή πλήκτρων συντόμευσης

The tables in Ενότητα 10.2.4 ― Τυπικά πλήκτρα συντόμευσεις για εφαρμογές summarize the standard shortcut keys to use when your application supports those functions. Your application will not necessarily support all of these functions, see Ενότητα 4.4 ― Standard Menus for more information. However, use the recommended shortcut keys for those functions you do support.

You will probably want to add your own shortcut keys for functions specific to your application. If so, as well as following the guidelines below, look at any other existing similar applications to see which shortcut keys they have defined. Your users may already be using those or similar applications, so being consistent where it is possible and sensible to do so will provide a better user experience for them when they begin to use yours.

Κατευθυντήριες γραμμές
  • Use Ctrl+letter in preference to other combinations when choosing new shortcut keys.
  • Insert, Delete, Home, End, Page Up and Page Down are acceptable shortcut keys for functions that are closely related to those keys' normal system-defined uses. Do not assign them to unrelated functions just because you've run out of other shortcut key combinations, however.
  • Only assign shortcut keys to the most commonly-used actions in your application. Do not try to assign a shortcut key to everything.
  • Choose new shortcut keys to be as mnemonic as possible, as these will be easier to learn and remember. For example, Ctrl+E would be a good shortcut for a menu item called Edit Page.
  • Use Shift+Ctrl+letter for functions that reverse or extend another function. For example, Ctrl+Z and Shift+Ctrl+Z for Undo and Redo.
    Unicode συντομεύσεις εισόδου

    Note that you cannot use Shift+Ctrl+A-thru-F or Shift+Ctrl+0-thru-9 for your own purposes, as these combinations are used to enter unicode characters in text fields.

  • Do not use Ctrl+number or numbered function keys as shortcut keys, unless the number has some obvious relevance to the action. For example, Ctrl+2 and Ctrl+3 may be acceptable shortcut keys for View ▸ 2D View and View ▸ 3D View in a 3D modelling application.
  • Do not use Alt+key combinations for shortcut keys, as these may conflict with window manager or menu access keys.
  • Do not use symbols that require Shift or other modifiers as part of a shortcut, for example Ctrl+%. Remember that symbols that can be accessed without a modifier key on your keyboard may be more difficult to access on different international keyboards.
  • Do not assign shortcut keys to menu items that change over time, for example a list of open windows on the Window menu, or a recently-used file list on the File menu. Do assign access keys to these items, however.
  • Do not use any of the standard shortcut keys listed in Ενότητα 10.2.4 ― Τυπικά πλήκτρα συντόμευσεις για εφαρμογές for your own purposes, even if your application doesn't support those functions. This helps reinforce consistency between all GNOME applications.

10.2.4. Τυπικά πλήκτρα συντόμευσεις για εφαρμογές

Αν η εφαρμογή σας χρησιμοποιεί κάποια από τις τυπικές λειτουργίες που βρίσκεται στους ακόλουθους πίνακες, χρησιμοποιήστε την προτεινόμενη τυπική συντόμευση πληκτρολογίου για αυτή τη λειτουργία.

Table 10-5Τυπικά πλήκτρα συντόμευσης και πλήκτρα πρόσβασης εφαρμογών του GNOME - μενού Αρχείο
Συνάρτηση Shortcut Description
Νew Ctrl+Ν Δημιουργία νέου εγγράφου
Άνοιγμα Ctrl+Ά Άνοιγμα ενός εγγράφου
Αave Ctrl+Α Αποθήκευση του τρέχοντος εγγράφου
Ετύπωση Ctrl+Ε Εκτύπωση του τρέχοντος εγγράφου
Cλείσιμο Ctrl+Π Κλείσιμο του τρέχοντος εγγράφου
Qερματισμός Ctrl+Q Τερματισμός της εφαρμογής
Table 10-6Τυπικά πλήκτρα συντόμευσης και πλήκτρα πρόσβασης για τις εφαρμογές του GNOME - μενού Επεξεργασία
Συνάρτηση Shortcut Description
Αναίρεση Ctrl+Z Αναίρεση της τελευταίας ενέργειας
Επανάληψη Shift+Ctrl+Z Επανάληψη της τελευταίας ενέργειας
Αποκοπτ Ctrl+X Αποκοπή της επιλεγμένης περιοχής και αποθήκευσή της στο πρόχειρο
Cντιγραφή Ctrl+C Αντιγραφή της επιλεγμένης περιοχής στο πρόχειρο
Επικόλληση Ctrl+Π Επικόλληση περιεχομένων του προχείρου στην θέση του ποντικιού/δρομέα
Δντιγραφή Ctrl+Α Αντιγραφή των επιλεγμένων στοιχείων και προσθήκη τους στο ίδιο παράθυρο, χωρίς να επηρεάζεται το πρόχειρο
Select Ωll Ctrl+Ω Επιλογή όλων στον εστιασμένο έλεγχο ή παράθυρο
Στην επιλογή θσαγωγή Ctrl+Ε Επιλογή όλως στον εστιασμένο έλεγχο ή παράθυρο που έχει προηγουμένως αποεπιλεγεί, και αποεπιλογή όλων που δεν επιλέχθηκαν προηγουμένως
Διαγραφή Del Διαγραφή επιλογής
Αύρεση… Ctrl+Α Η εύρεση κάνει αναζήτηση στο τρέχον έγγραφο, επισημαίνοντας τις θέσεις
Αναζήτηση… Ctrl+Α (δείτε τη σημείωση παρακάτω) Αναζήτηση σε πολλαπλά έγγραφα, αρχεία ή άλλες εξωτερικές πηγές
Find Neμt Ctrl+Μ Εύρεση επόμενου αποτελέσματος
Εeplace... Ctrl+Β Εύρεση και αντικατάσταση αποτελεσμάτων
Μeτονομασία F2 Εναλλάξτε την ετικέτα του επιλεγμένου στοιχείου σε λειτουργία επεξεργασίας, επιτρέποντας στο χρήστη να πληκτρολογεί σε ένα νέο όνομα.
Εύρεση

Αν η εφαρμογή σας απαιτεί τα στοιχεία μενού Επεξεργασία ▸ Εύρεση και Επεξεργασία ▸ Εύρεση, χρησιμοποιήστε το συνδυασμό Shift+Ctrl+F ως συντόμευση για την Εύρεση.

Table 10-7Τυπικά πλήκτρα συντόμευσης και πλήκτρα πρόσβασης για τις εφαρμογές του GNOME - μενού Προβολή
Συνάρτηση Shortcut Description
ΕστίασΕη Ctrl+Εστίαση Εστίαση στο έγγραφο
ΣμίκρυΆση Ctrl+Σμίκρυνση Σμίκρυνση στο έγγραφο
Νανονικό μέγεθος Ctrl+0 Επαναφορά στο επίπεδο εστίασης κανονικού μεγέθους (γενικά είναι 100%)
Ενανέωση Ctrl+Ε Επανασχεδίαση της τρέχοτσας προβολής του εγγράφου, χωρίς τον έλεγχο αν τροποποιήθηκε το περιεχόμενο
Επανάληψη Ctrl+Ε (δείτε τη σημείωση παρακάτω) Επαναφόρτωση του τρέχοντος εγγράφου, ενημερώνοντας το περιεχόμενο από την πηγή αν αυτό είναι απαραίτητο
Ιδαότητες Alt+Εισαγωγή Εμανίστε το παράθυρο Ιδιότητες του επιλεγμένου αντικειμένου. Ενδεχομένως αναλλακτικά να εμφανίζεται στο μενού Αρχείο αν το αντικείμενο είναι το μόνο στην εφαρμογή του οποίου οι ιδιότητες μπορούν να ελεγχθούν.
Επαναφόρτωση και ανανέωση

Αν η εφαρμογή σας απαιτεί τα στοιχεία μενού Προβολή ▸ Επανάληψη και Προβολή ▸ Ανανέωση, χρησιμοποιήστε το συνδυασμό Shift+Ctrl+R ως συντόμευση για την Επανάληψη.

Table 10-8Τυπικά πλήκτρα συντόμευσης και πλήκτρα πρόσβασης των εφαρμογών του GNOME - μενού Σελιδοδείκτες
Συνάρτηση Shortcut Description
Προσθήκη Σελιδοδείκτη Ctrl+Δ Προσθήκη σελιδοδείκτη για την τρέχουσα τοποθεσία
Επεξεργασία σελιδοδεικτών… Ctrl+Σ (δείτε τη σημείωση παρακάτω) Ανοίξτε ένα παράθυρο στο οποίο ο χρήστης μπορεί να επεξεργαστεί και να οργανώσει τους αποθηκευμένους σελιδοδείκτες
Τονισμός και επεξεργασία σελιδοδεικτών

Αν η εφαρμογή σας απαιτεί τα στοιχεία μενού Μορφή ▸ Έντονα και Σελιδοδείκτες ▸ Επεξεργασία σελιδοδεικτών…, χρησιμοποιήστε το συνδυασμό Shift+Ctrl+D ως συντόμευση για την Επεξεργασία σελιδοδεικτών.

Table 10-9Τυπικά πλήκτρα συντόμευσης και πλήκτρα πρόσβασης για τις εφαρμογές του GNOME - μενού Μετάβαση
Συνάρτηση Shortcut Description
Σack Alt+Αριστερά Μετάβαση στην προηγούμενη θέση στην αλυσίδα πλοήγησης
Επόμεμο Alt+Δεξιά Μετάβαση στην επόμενη θέση στην αλυσίδα πλοήγησης
Αάνω Alt+Πάνω Μετάβαση ένα επίπεδο πάνω στην ιεραρχία πλοήγησης
Βαρχή Alt+Αρχή Μετάβαση στην αρχική σελίδα που ορίστηκε από το χρήστη ή την εφαρμογή
Λοποθεσία… Ctrl+Λ Παρουσιάστε ή εστιάστε ένα πεδίο εισαγωγής στο οποίο το χρήστης μπορεί να πληκτρολογεί μία νέα διεύθυνση ή τοποθεσία για προβολή
Table 10-10Τυπικά πλήκτρα συντόμευσης και πλήκτρα πρόσβασης των εφαρμογών του GNOME - μενού Μορφοποίηση
Συνάρτηση Shortcut Description
Σντονα Ctrl+Σ Κάντε έντονο/κανονικό το επιλεγμένο κείμενο
Αε υπογράμμιση Ctrl+Α Υπογράμμιση/αφαίρεση υπογράμμισης από το επιλεγμένο κείμενο
Ελάγια Ctrl+Ε Κάντε πλάγιο/κανονικό το επιλεγμένο κείμενο
Table 10-11Τυπικά πλήκτρα συντόμευσης και πλήκτρα πρόσβασης των εφαρμογών του GNOME - μενού Βοήθεια
Συνάρτηση Shortcut Description
Cεριεχόμενα F1 Έμφάνσιη της σελίδας των περιεχομένων της βοήθειας για την τρέχουσα εφαρμογή

10.2.4.1. Τυπικά πλήκτρα συντόμευσης του διαχειριστή παραθύρων

Τα ακόλουθα πλήκτρα συντόμευσης χρησιμοποιούνται από πολλούς διαχειριστές παραθύρων, και θα πρέπει κανονικά να αντικαθίστανται από την εφαρμογή σας.

Table 10-12Πλήκτρα συντόμευσης και πλήκτρα πρόσβασης για τον τυπικό διαχειριστή παραθύρων
Συνάρτηση Shortcut Description
Εναλλαγή πρωτεύοντων παραθύρων Alt+Tab, Shift+Alt+Tab Εναλλάξτε την εστίαση στο επόμενο ή προηγούμενο ανώτερο παράθυρο επιπέδου στην επιφάνεια εργασίας
Εναλλαγή πλαισίων Ctrl+Alt+Tab, Shift+Ctrl+Alt+Tab Εναλλάξτε την εστίαση στο επόμενο ή το προηγούμενο πλαίσιο στην επιφάνεια εργασίας.
Αποσύνδεση Ctrl+Alt+Del Ανοίξτε το διάλογο για την επιβεβαίωση αποσύνδεσης από τη συνεδρία
Μενού παραθύρου Alt+Διάστημα Άνοιγμα του μενού του παραθύρου
Cλείσιμο Alt+F4 Κλείσιμο του υποκείμενου παραθύρου
Επαναφορά Alt+F5 Επαναφορά του υποκείμενου παραθύρου στο προηγούμενο μέγεθός του
Αναλλαγή δευτερευόντων παραθύρων Alt+F6, Shift+Alt+F6 Εναλλάξτε την εστίαση στο επόμενο ή προηγούμενο δευτερεύον παράθυρο που σχετίζεται με την εφαρμογή ()
Μετακίνηση Alt+F7 Μετακίνηση του υποκείμενου παραθύρου
Αλλαγή μεγέθους Alt+F8 Αλλαγή μεγέθους του υποκείμενου παραθύρου
Ελααχιστοποίηση Alt+F9 Ελαχιστοποίηση του υποκείμενου παραθύρου
Μεμιστοποίηαη Alt+F10 Μεγιστοποίηση του υποκείμενου παραθύρου
Αλήρης οθόνη Ctrl+F11 Εμφανίστε το παράθυρο σε πλήρη οθόνη, χωρίς περιγράμματα, γραμμή μενού, εργαλειοθήκη ή γραμμή κατάστασης

10.2.4.2. Τυπικά πλήκτρα συντόμευσης για την πλοήγηση σε γραφικά συστατικά

Τα ακόλουθα πλήκτρα συντόμευσης έχουν εξασφαλιστεί για χρήση με πλοήγηση μέσω πληκτρολογίου από διάφορα γραφικά συστατικά που χρησιμοποιούνται στο GNOME, και κανονικά δεν αντικαθίστανται από την εφαρμογή σας.

Table 10-13Τυπικά πλήκτρα πλοήγησης πληκτρολογίου του GNOME για γραφικά συστατικά
Κλειδί Συνάρτηση
Tab, Shift+Tab Μετακινεί την εστίαση πληκτρολογίου στον επόμενο/προηγούμενο έλεγχο
Ctrl+Tab, Shift+Ctrl+Tab Μετακινεί την εστίαση πληκτρολογίου έξω από το επισυναπτόμενο γραφικό συστατικό στον επόμενο/προηγούμενο έλεγχο, στις περιπτώσεις εκείνες όπου το πλήκτρο Tab έχει κάποια άλλη συνάρτηση (π.χ. το GtkTextView)
Ctrl+F1 Ανάδυση της συμβουλής οθόνης για τον εστιασμένο έλεγχο
Shift+F1 Εμφάνιση της εκάστοτε συναφούς βοήθειας για το εστιασμένο παράθυρο ή έλεγχο
F6, Shift+F6 Εστίαση στο επόμενο/προηγούμενο πλαίσιο σε ένα παράθυρο GtkPaned
F8 Εστίαση στην γραμμή διαχωρισμού στο παράθυρο
F10 Εστίαση στη γραμμή μενού του παραθύρου
Shift+F10 Ανάδυση του συναφούς μενού για τα επιλεγμένα αντικείμενα
Διάστημα Εναλλαγή της επιλεγμένης κατάστασης του εστιασμένου πεδίου ελέγχου, κουμπιού συχνοτήτων ή κουμπιού εναλλαγής
Return Ενεργοποίηση του εστιασμένου κουμπιού, στοχείου μενού κλπ.
Αρχή, End Επιλογή/μετακίνηση στο πρώτο στοιχείο του επιλεγμένου γραφικού συστατικού
PageUp, Ctrl+PageUp, PageDown, Ctrl+PageDown Κύλιση της επιλεγμένης προβολής μία σελίδα πάνω/αριστερά/κάτω/δεξιά

10.2.4.3. Επιπρόσθετα πλήκτρα συντόμευσης για πλοήγηση σε γραφικά συστατικά

The following emacs-style navigation shortcut keys are still available in GNOME 2.0 text entry fields (by selecting the "emacs" scheme in the GNOME Keyboard Shortcuts preferences dialog), but are disabled by default. Since some users will still want to use them, do not over-ride them for your own purposes in any situations where a text entry control has focus.

Table 10-14Πλήκτρα πλοήγησης με Emacs-τύπο για γραφικά συστατικά
Κλειδί Συνάρτηση
Ctrl+Ω Μετακίνηση του δρομέα μέχρι την αρχή της γραμμής
Ctrl+Δ Διαγραφή του χαρακτήρα που ακολουθεί/είναι κάτω το/του δρομέα
Ctrl+Ε Μετακίνηση του δρομέα μέχρι το τέλος της γραμμής
Ctrl+K Διαγραφή από το δρομέα μέχρι το τέλος της γραμμής
Ctrl+Α Διαγραφή της τρέχουσας γραμμής
Ctrl+Π Αποκοπή στο πρόχειρο
Ctrl+Y Επικόλληση από το πρόχειρο
Ctrl+Διάστημα Ορισμός επισήμανσης
Ctrl+Del, Alt+Δ Διαγραφή από το δρομέα μέχρι το τέλος της λέξης
Ctrl+Backspace Διαγραφή από το δρομέα μέχρι την αρχή της λέξης
Alt+Διάστημα Διαγραφή όλου του λευκού κενού γύρω από το δρομέα, εισαγωγή ξανά ενός απλού κενού
Alt+\ Διαγραφή όλου του λευκού κενού γύρω από το δρομέα

10.2.5. Διάδραση πληκτρολογίου με εφαρμογές του πίνακα εφαρμογών (Μικροεφαρμογές)

Οι πίνακες εφαρμογών μπορούν να πλοηγηθούν πλήρως με το πληκτρολόγιο από την έκδοση 2.0 του GNOME. Επειδή η εφαρμογή σας στον πίνακα εφαρμογών μπορεί να έχει εστίαση πληκτρολογίου, πρέπει να βεβαιωθείτε ότι μπορεί να πλοηγηθεί επίσης και με το πληκτρολόγιο.

Οι κανόνες για την πλοήγηση πληκτρολογίου σε εφαρμογές του πίνακα εφαρμογών είναι ως επί το πλείστον παρόμοιες με εκείνες σε κάθε άλλο παράθυρο. Παρόλα αυτά, υπάρχει μία σημαντική διαφορά:

  • Μην χρησιμοποιείται το πλήκτρο Tab ως το μέσο για τη μετακίνηση της εστίασης μεταξύ των ελέγχων σε μία εφαρμογή του πίνακα εφαρμογών. Αντί για αυτό, χρησιμοποιήστε τα πλήκτρα βελών για αυτό το σκοπό.

When an object on a panel has focus, the Tab key normally moves focus to the next object on the panel. If your panel application also used Tab for its own internal navigation, the user would have to press Ctrl+Tab to move focus out of your panel application instead. This inconsistency would be detrimental to the user experience.