Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-391

Mnemonics don't work correctly in SwingBuilder

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0-beta-4
    • 1.0-beta-6
    • None
    • None
    • Windows XP

    Description

      If I have an entry something like this:

      menuBar {
      menu(text:'Help', mnemonic:'H') {

      The Mnemonic is not set, in fact this throws an 'Argument type or mismatch' exception.

      changing the code to

      menuBar {
      menu(text:'Help', mnemonic:1) {

      helps in that there is no exception but I still don't get the mnemonic.

      James suggested this as a work around:

      menu(text:'Help', mnemonic:'H'.charAt(0)) {

      and that works.

      However if I have the following

      menuItem() {
      action(name:'Open', mnemonic:'O'.charAt(0), closure:

      { ... }

      )

      The mnemonic still doesn't work

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            guillaume Guillaume Sauthier
            kevinj@develop.com Kevin Jones
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment