Skip to content

Commit 7e94791

Browse files
Merge pull request #43 from askui/fix-ui-tar-api-handler
Fix UI-Tars execute hotkey act
2 parents cc56281 + d835dc6 commit 7e94791

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/askui/models/ui_tars_ep/ui_tars_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,8 +210,8 @@ def execute_act(self, message_history):
210210
self._agent_os.type(action.content)
211211
time.sleep(0.5)
212212
if action.action_type == "hotkey":
213-
self._agent_os.keyboard_pressed(action.content)
214-
self._agent_os.keyboard_release(action.content)
213+
self._agent_os.keyboard_pressed(action.key)
214+
self._agent_os.keyboard_release(action.key)
215215
time.sleep(0.5)
216216
if action.action_type == "call_user":
217217
time.sleep(1)

0 commit comments

Comments
 (0)