Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
hisaac opened this issue Nov 16, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@hisaac
Copy link

hisaac commented Nov 16, 2024

Description

I'm using Packer to spin up macOS VMs with Tart's Packer plugin. 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 <leftCmdOn> and its left/right off/on variants to send the Command key.
  2. The ability to use <leftOptOn> and its left/right off/on variants to send the Option key.

Right now, <leftAlt> an <rightAlt> 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.

@hisaac
Copy link
Author

hisaac commented Nov 16, 2024

I'm not sure at what layer these changes would need to be made, so I've also opened a matching issue on the cirruslabs/packer-plugin-tart repo: cirruslabs/packer-plugin-tart#174

@hisaac
Copy link
Author

hisaac commented Nov 19, 2024

I see there was some discussion and maybe some work related to this done in the main packer repository a while ago.

Perhaps that work can be duplicated here somehow?

@mcandre, it seems like you were the primary person interested in this in the main packer repository. Any thoughts or ideas on how similar functionality could be brought to the plugin sdk?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant