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

Fix pageUp and pageDown boot command usb key strokes #46

Merged
merged 1 commit into from
Mar 30, 2021

Conversation

sylviamoss
Copy link
Member

@sylviamoss sylviamoss requested a review from a team as a code owner March 30, 2021 09:50
@sylviamoss
Copy link
Member Author

sylviamoss commented Mar 30, 2021

User confirmed the changes work hashicorp/packer#10796 (comment)

@@ -55,8 +55,8 @@ func NewUSBDriver(send SendUsbScanCodes, interval time.Duration) *usbDriver {
"insert": key.CodeInsert,
"home": key.CodeHome,
"end": key.CodeEnd,
"pageUp": key.CodePageUp,
"pageDown": key.CodePageDown,
Copy link
Contributor

@azr azr Mar 30, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does that mean that pageUp will stop working ? and only pageup will ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They never worked. The keystrokes are lowercased before matching the map. All of the others are lowercased I don't know why I added these two camel-cased in the first place. 🤔

Copy link
Contributor

@azr azr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Had a tiny question, other than that LGTM !

Copy link
Member

@nywilken nywilken left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@sylviamoss sylviamoss merged commit a405053 into main Mar 30, 2021
@sylviamoss sylviamoss deleted the fix_usb_page_keys branch March 30, 2021 13:24
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.

Special pageDown not found with vsphere builder
3 participants