Skip to content

Commit afcf07f

Browse files
committed
add 2 more keys
1 parent 2061b1b commit afcf07f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/agentlab/agents/openai_cua/agent.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,11 +127,13 @@ def parse_action_to_bgym(self, action) -> str:
127127
elif k.lower() == "space":
128128
to_press = " "
129129
elif k.lower() == "ctrl":
130-
to_press = "Ctrl"
130+
to_press = "Control"
131131
elif k.lower() == "shift":
132132
to_press = "Shift"
133133
elif k.lower() == "alt":
134134
to_press = "Alt"
135+
elif k.lower() == "-":
136+
to_press += "Minus"
135137
else:
136138
to_press += f"+{k}"
137139
return f"keyboard_press('{to_press}')"

0 commit comments

Comments
 (0)