blob: 2c5a1e523d2163e8823a4860704a918d5c9a6345 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this file,
# You can obtain one at http://mozilla.org/MPL/2.0/.
import marionette_driver
class Keys(marionette_driver.keys.Keys):
"""Proxy to marionette's keys with an "accel" provided for convenience
testing across platforms."""
def __init__(self, marionette):
self.isDarwin = marionette.session_capabilities['platformName'] == 'darwin'
@property
def ACCEL(self):
return self.META if self.isDarwin else self.CONTROL
|