gui-commands
  1. gui-commands
  2. GUI_COMMANDS-31

Allow accelerators to be specified in the face text

    Details

    • Type: New Feature New Feature
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 1.2 beta
    • Fix Version/s: milestone 1
    • Component/s: java
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      31

      Description

      Just a thought:

      To make internationalization easier it would be nice if not only the mnemonic
      could be derived from the text-element in a face, but also the accelerator,
      something like

      <text>_Save ... [F4]</text>

      The square brackets (if present at the end of a a text-element) would contain
      the accelerator key in the format of KeyStroke.getKeyStroke(String). The nice
      thing about having all this in a single string is the fact that this string can
      then be entered in a Resource bundle needing only a single key:

      <text i18n="save.caption"/>

      I will have a go at writing and registering my own FaceBuilder variant for this
      but it would be nice if something like it were already in the standard code.

      Kris Coolsaet

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            pietschy
            Reporter:
            pietschy
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: