mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-28 03:17:31 +09:00
17 lines
593 B
Python
17 lines
593 B
Python
|
|
# 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
|