Skip to content

[WIP] feat: add support for meta keys#323

Open
PrashantRaj18198 wants to merge 2 commits intohashicorp:mainfrom
WarpBuilds:main
Open

[WIP] feat: add support for meta keys#323
PrashantRaj18198 wants to merge 2 commits intohashicorp:mainfrom
WarpBuilds:main

Conversation

@PrashantRaj18198
Copy link
Copy Markdown

Description

Added support for meta keys which map to 'Option' keys on macs. We can use <leftMetaOn/Off> and <rightMetaOn/Off> to signal the left and right Option key press.

I haven't checked if the keypress maps to something in linux, let me know if this is required.

Rollback Plan

If a change needs to be reverted, we will roll out an update to the code within 7 days.

Changes to Security Controls

NA

PrashantRaj18198 and others added 2 commits April 1, 2026 17:59
This commit adds support for leftMeta and rightMeta keys in boot commands,
addressing the missing Meta key mappings in the VNC implementation.

Changes:
- Add leftmeta/rightmeta keysym mappings to VNC driver (0xFFE7/0xFFE8)
- Add leftmeta/rightmeta mappings to USB driver (CodeLeftGUI/CodeRightGUI)
- Update boot command parser grammar to recognize leftMeta/rightMeta
- Regenerate boot_command.go from .pigeon grammar file
- Update documentation to include Meta key usage

Meta keys (0xFFE7/0xFFE8) are distinct from Super keys (0xFFEB/0xFFEC)
according to the X11/VNC keysym standard (QEMU vnc_keysym.h).

Users can now use <leftMetaOn>, <leftMetaOff>, <rightMetaOn>, and
<rightMetaOff> in boot commands, similar to existing Alt key functionality.

All existing tests pass successfully.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Add Meta key support to bootcommand VNC and USB drivers
@PrashantRaj18198 PrashantRaj18198 requested a review from a team as a code owner April 2, 2026 03:56
@hashicorp-cla-app
Copy link
Copy Markdown

hashicorp-cla-app bot commented Apr 2, 2026

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant