Skip to content

Commit b1a7235

Browse files
authored
vmware_guest_sendkey: Add Windows key (#1960)
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
1 parent 532250b commit b1a7235

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
minor_changes:
2+
- vmware_guest_sendkey - Add Windows key (https://github.com/ansible-collections/community.vmware/issues/1959).

plugins/modules/vmware_guest_sendkey.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
description:
7878
- The list of the keys will be sent to the virtual machine.
7979
- '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),
80-
C(CTRL_C), C(CTRL_X) and C(F1) to C(F12), C(RIGHTARROW), C(LEFTARROW), C(DOWNARROW), C(UPARROW).'
80+
C(CTRL_C), C(CTRL_X) and C(F1) to C(F12), C(RIGHTARROW), C(LEFTARROW), C(DOWNARROW), C(UPARROW), C(WINDOWS).'
8181
- 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).
8282
type: list
8383
default: []
@@ -249,6 +249,7 @@ def __init__(self, module):
249249
('LEFTARROW', '0x50', [('', [])]),
250250
('DOWNARROW', '0x51', [('', [])]),
251251
('UPARROW', '0x52', [('', [])]),
252+
('WINDOWS', '0xe3', [('', [])]),
252253
]
253254

254255
@staticmethod

0 commit comments

Comments
 (0)