Skip to content

Commit 556cf51

Browse files
committed
Update dev and stable version
Update dev and stable version
1 parent 279cdaf commit 556cf51

File tree

4 files changed

+47
-42
lines changed

4 files changed

+47
-42
lines changed

.idea/workspace.xml

Lines changed: 42 additions & 38 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dev.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"
66

77
[project]
88
name = "je_auto_control_dev"
9-
version = "0.0.121"
9+
version = "0.0.122"
1010
authors = [
1111
{ name = "JE-Chen", email = "[email protected]" },
1212
]

je_auto_control/windows/core/utils/win32_keypress_check.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import sys
2+
from typing import Union
23

34
from je_auto_control.utils.exception.exception_tags import windows_import_error
45
from je_auto_control.utils.exception.exceptions import AutoControlException
@@ -9,11 +10,11 @@
910
import ctypes
1011

1112

12-
def check_key_is_press(keycode: [int, str]) -> bool:
13+
def check_key_is_press(keycode: Union[int, str]) -> bool:
1314
if isinstance(keycode, int):
1415
temp: int = ctypes.windll.user32.GetAsyncKeyState(keycode)
1516
else:
1617
temp = ctypes.windll.user32.GetAsyncKeyState(ord(keycode))
17-
if temp > 1:
18+
if temp != 0:
1819
return True
1920
return False

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"
66

77
[project]
88
name = "je_auto_control"
9-
version = "0.0.173"
9+
version = "0.0.174"
1010
authors = [
1111
{ name = "JE-Chen", email = "[email protected]" },
1212
]

0 commit comments

Comments
 (0)