hashicorp / hashicorp/packer-plugin-sdk

Add ability to send macOS-specific modifier keys (Command, Option) to `boot_command`

Open
#266 3 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Go
Stars
42
Forks
62
Avg merge
29m
Merged PRs (30d)
2

Description

#### Description

I'm using Packer to spin up macOS VMs with [Tart's Packer plugin](https://github.com/cirruslabs/packer-plugin-tart/). It works great, but one quality of life improvement I'd love to see is the ability to use correct references to macOS-specific modifier keys (Command and Option keys) in the `boot_command`.

Specifically, what I'd like to have is:

1. The ability to use `` and its left/right off/on variants to send the Command key.
2. The ability to use `` and its left/right off/on variants to send the Option key.

Right now, `` an `` both map to left and right Command respectively, so I assume these could just be aliased somehow.

I haven't figured out how to send an Option key command yet though, so I'm not sure how that would be implemented.

I'm willing to do this work myself if someone could first give me some guidance or ideas on where and how this modification might be made.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.