Package: python-xdo
Version: 0.3-2
Severity: minor

Hi,

Please find attached two simple patches to fix documentation bits I've
stumbled upon while adding support for a new function.

Thanks for considering.

Cheers,
-- 
Cyril Brulebois -- Debian Consultant @ DEBAMAX -- https://debamax.com/
>From 4337e3e8bf51426d82f1eb775dc61d5dcf5f43c0 Mon Sep 17 00:00:00 2001
From: Cyril Brulebois <cy...@debamax.com>
Date: Mon, 13 Feb 2017 01:09:23 +0100
Subject: [PATCH 1/4] Fix typo in CURRENTWINDOW's description.

Signed-off-by: Cyril Brulebois <cy...@debamax.com>
---
 xdo/_xdo.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/xdo/_xdo.py b/xdo/_xdo.py
index a27314e..ef4fd74 100644
--- a/xdo/_xdo.py
+++ b/xdo/_xdo.py
@@ -46,7 +46,7 @@ def _errcheck(result, func, arguments):
             .format(func.__name__, result))
     return None  # be explicit :)
 
-# CURRENTWINDOW is a special identify for xdo input faking (mouse and
+# CURRENTWINDOW is a special identifier for xdo input faking (mouse and
 # keyboard) functions like xdo_send_keysequence_window that indicate
 # we should target the current window, not a specific window.
 #
-- 
2.1.4

>From 229c3ade77280c318a2f06ad6eee6389639ad06d Mon Sep 17 00:00:00 2001
From: Cyril Brulebois <cy...@debamax.com>
Date: Mon, 13 Feb 2017 00:54:31 +0100
Subject: [PATCH 2/4] Fix clearmodifiers doc for send_keysequence_window().

It seems to have been truncated during the port to ctypes.

Signed-off-by: Cyril Brulebois <cy...@debamax.com>
---
 xdo/__init__.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/xdo/__init__.py b/xdo/__init__.py
index 0c0e75b..d3c99c3 100644
--- a/xdo/__init__.py
+++ b/xdo/__init__.py
@@ -58,7 +58,8 @@ class xdo(object):
         :param window:
             The window you want to send keystrokes to or (by default) xdo.CURRENTWINDOW
         :param clearmodifiers:
-            consider 
+            Whether to clear any current modifier keys before sending
+            the text (defaults to True).
         """
         if type(delay) == timedelta:
             delay_int = int(delay.total_seconds() * 1000000)
-- 
2.1.4

Reply via email to