Skip to content

Multi Choice Allows for a Duplicate Shortcut Key #346

@tommymaynard

Description

@tommymaynard

The multi choice parameter allows you to use the same letter as a shortcut key for more than one choice.

<choice label="&amp;Private"
        help="Adds a Private folder to the module root."
        value="Private" />
<choice label="&amp;Public"
        help="Adds a Public folder to the module root."
        value="Public" />   

In the above example, if the letter "P" is used as a shortcut it will create both the Private and Public folder. My current work around is to use different letters.

<choice label="P&amp;rivate"
        help="Adds a Private folder to the module root."
        value="Private" />
<choice label="P&amp;ublic"
        help="Adds a Public folder to the module root."
        value="Public" />   

It seems buggy that Invoke-Plaster, and perhaps Test-PlasterManifest, would allow for this behavior. The expected behavior would be an indication to the user that there's a conflict, and that a different value should be used for one of the choice labels.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions