cua-computer 0.1.27__py3-none-any.whl → 0.1.28__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- computer/interface/macos.py +9 -1
- {cua_computer-0.1.27.dist-info → cua_computer-0.1.28.dist-info}/METADATA +1 -1
- {cua_computer-0.1.27.dist-info → cua_computer-0.1.28.dist-info}/RECORD +5 -5
- {cua_computer-0.1.27.dist-info → cua_computer-0.1.28.dist-info}/WHEEL +0 -0
- {cua_computer-0.1.27.dist-info → cua_computer-0.1.28.dist-info}/entry_points.txt +0 -0
computer/interface/macos.py
CHANGED
@@ -335,7 +335,15 @@ class MacOSComputerInterface(BaseComputerInterface):
|
|
335
335
|
|
336
336
|
# Keyboard Actions
|
337
337
|
async def type_text(self, text: str) -> None:
|
338
|
-
|
338
|
+
# Temporary fix for https://github.com/trycua/cua/issues/165
|
339
|
+
# Check if text contains Unicode characters
|
340
|
+
if any(ord(char) > 127 for char in text):
|
341
|
+
# For Unicode text, use clipboard and paste
|
342
|
+
await self.set_clipboard(text)
|
343
|
+
await self.hotkey(Key.COMMAND, 'v')
|
344
|
+
else:
|
345
|
+
# For ASCII text, use the regular typing method
|
346
|
+
await self._send_command("type_text", {"text": text})
|
339
347
|
|
340
348
|
async def press(self, key: "KeyType") -> None:
|
341
349
|
"""Press a single key.
|
@@ -4,7 +4,7 @@ computer/interface/__init__.py,sha256=xQvYjq5PMn9ZJOmRR5mWtONTl_0HVd8ACvW6AQnzDd
|
|
4
4
|
computer/interface/base.py,sha256=uRF2AfF3dbpOmvzZ55JgODpNC6LiudfhK8KCf5v7uUw,5771
|
5
5
|
computer/interface/factory.py,sha256=7Sczbmgu7Zlf9QfmhxOe_wFawRSPpvwd2dLSA4asDs0,1028
|
6
6
|
computer/interface/linux.py,sha256=0Kc_vkPnEUlKUcVYMycbxiuKyZOpOPwwmUcFJbFmopE,817
|
7
|
-
computer/interface/macos.py,sha256=
|
7
|
+
computer/interface/macos.py,sha256=tEzDTHkj1k76LTCq-BdJ6IhWpBhw5VkhtPG6WOTtPEY,25153
|
8
8
|
computer/interface/models.py,sha256=RZKVUdwKrKUoFqwlx2Dk8Egkmq_AInlIu_d0xg7SZzw,3238
|
9
9
|
computer/logger.py,sha256=UVvnmZGOWVF9TCsixEbeQnDZ3wBPAJ2anW3Zp-MoJ8Y,2896
|
10
10
|
computer/models.py,sha256=6chs4wxMpWdVhsOETeaGqFFI3feBmSyLIC8l5EJDq5g,780
|
@@ -13,7 +13,7 @@ computer/ui/__init__.py,sha256=pmo05ek9qiB_x7DPeE6Vf_8RsIOqTD0w1dBLMHfoOnY,45
|
|
13
13
|
computer/ui/gradio/__init__.py,sha256=5_KimixM48-X74FCsLw7LbSt39MQfUMEL8-M9amK3Cw,117
|
14
14
|
computer/ui/gradio/app.py,sha256=IU4gmvXvUxJxt1MSAMT6bfNC2YjT_JQbQ0M60bLygMs,64086
|
15
15
|
computer/utils.py,sha256=zY50NXB7r51GNLQ6l7lhG_qv0_ufpQ8n0-SDhCei8m4,2838
|
16
|
-
cua_computer-0.1.
|
17
|
-
cua_computer-0.1.
|
18
|
-
cua_computer-0.1.
|
19
|
-
cua_computer-0.1.
|
16
|
+
cua_computer-0.1.28.dist-info/METADATA,sha256=rxFTrFJf051Ilei3SslK2JNWW5cla_p3uH-80edwh7s,5584
|
17
|
+
cua_computer-0.1.28.dist-info/WHEEL,sha256=tSfRZzRHthuv7vxpI4aehrdN9scLjk-dCJkPLzkHxGg,90
|
18
|
+
cua_computer-0.1.28.dist-info/entry_points.txt,sha256=6OYgBcLyFCUgeqLgnvMyOJxPCWzgy7se4rLPKtNonMs,34
|
19
|
+
cua_computer-0.1.28.dist-info/RECORD,,
|
File without changes
|
File without changes
|