Skip to content

llvm-rc: modifiers should be allowed for non-VIRTKEYS #64002

@pjanx

Description

@pjanx

This check is wrong:

  if (!IsVirtKey && (Obj.Flags & (Opt::ALT | Opt::SHIFT | Opt::CONTROL)))
    return createAccError("Can only apply ALT, SHIFT or CONTROL to VIRTKEY"
                          " accelerators");

The documentation for those options might want you to believe this handling is correct, but it also immediately disagrees with itself—see IDDELLIPSE in the follow-up example.

Neither MSVC nor windres have an issue with it. More importantly, such accelerators work, at least in the case of ALT.

Metadata

Metadata

Assignees

No one assigned

    Labels

    llvm-toolsAll llvm tools that do not have corresponding tag

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions