Skip to content

Commit

Permalink
vmware_guest_sendkey: Add Windows key (#1960)
Browse files Browse the repository at this point in the history
vmware_guest_sendkey: Add Windows key

SUMMARY
Fixes #1959
Add the windows key to support keyboard emulation in windows server.
ISSUE TYPE

Feature Pull Request

COMPONENT NAME
vmware_guest_sendkey
  • Loading branch information
mariolenz authored Jan 11, 2024
1 parent 532250b commit b1a7235
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions changelogs/fragments/1959-vmware_guest_sendkey.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
minor_changes:
- vmware_guest_sendkey - Add Windows key (https://github.com/ansible-collections/community.vmware/issues/1959).
3 changes: 2 additions & 1 deletion plugins/modules/vmware_guest_sendkey.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
description:
- The list of the keys will be sent to the virtual machine.
- 'Valid values are C(ENTER), C(ESC), C(BACKSPACE), C(TAB), C(SPACE), C(CAPSLOCK), C(HOME), C(DELETE), C(END), C(CTRL_ALT_DEL),
C(CTRL_C), C(CTRL_X) and C(F1) to C(F12), C(RIGHTARROW), C(LEFTARROW), C(DOWNARROW), C(UPARROW).'
C(CTRL_C), C(CTRL_X) and C(F1) to C(F12), C(RIGHTARROW), C(LEFTARROW), C(DOWNARROW), C(UPARROW), C(WINDOWS).'
- If both O(keys_send) and O(string_send) are specified, keys in O(keys_send) list will be sent in front of the O(string_send).
type: list
default: []
Expand Down Expand Up @@ -249,6 +249,7 @@ def __init__(self, module):
('LEFTARROW', '0x50', [('', [])]),
('DOWNARROW', '0x51', [('', [])]),
('UPARROW', '0x52', [('', [])]),
('WINDOWS', '0xe3', [('', [])]),
]

@staticmethod
Expand Down

0 comments on commit b1a7235

Please sign in to comment.