Skip to content

Commit b2fbfeb

Browse files
committed
ViewClient.pressKeyCode metaState defaults to 0
1 parent 0f445e0 commit b2fbfeb

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/com/dtmilano/android/viewclient.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
@author: Diego Torres Milano
1919
'''
2020

21-
__version__ = '11.2.1'
21+
__version__ = '11.3.1'
2222

2323
import sys
2424
import warnings
@@ -3654,11 +3654,11 @@ def swipe(self, (x0, y0), (x1, y1), steps=400):
36543654
else:
36553655
warnings.warn("swipe only implemented using UiAutomatorHelper. Use AdbClient.drag() instead.")
36563656

3657-
def pressKeyCode(self, keycode, metaState=-1):
3657+
def pressKeyCode(self, keycode, metaState=0):
36583658
'''By default no meta state'''
36593659
if self.uiAutomatorHelper:
36603660
if DEBUG_UI_AUTOMATOR_HELPER:
3661-
print >> sys.stderr, "pressKeyCode(%d, %d)" %(keycode, metaState)
3661+
print >> sys.stderr, "pressKeyCode(%d, %d)" % (keycode, metaState)
36623662
self.uiAutomatorHelper.pressKeyCode(keycode, metaState)
36633663
else:
36643664
warnings.warn("pressKeyCode only implemented using UiAutomatorHelper. Use AdbClient.type() instead")

0 commit comments

Comments
 (0)