+
    Q¬·i  c                  sæ   a € 0 t $ R t^ RIHt RtRtRtRtRt^ RI	H
t
 ^RIHt ^R	IHt ^R
IHt ^RIHt ^RIHt ^RIHt ^RIHt ]
'       d   ^RIHt  ! R R4      t]! 4       tR]R&   R R ltR# )ú=Provides means to pass keyboard events to the app being used.)Úannotationsz$Id$z
$Revision$z$Date$zGCopyright (c) 2024 Igalia, S.L.Copyright (c) 2024 GNOME Foundation Inc.ZLGPL)ÚTYPE_CHECKING)Úcmdnames)Údebug)Úinput_event)Úkeybindings)Úmessages)Úorca_modifier_manager)Úsettings_manager)Údefaultc                  sz   € ] tR t^0tRtR R ltRR R lltRR R lltR R	 ltR
 R lt	R R lt
RR R lltRtR# )ÚBypassModeManagerr    c               ó   € V ^8„  d   QhRR/# ©é   ÚreturnZNone© ©Zformató   "Ú=/usr/lib/python3.14/site-packages/orca/bypass_mode_manager.pyÚ__annotate__ÚBypassModeManager.__annotate__3   s   € ÷ Lñ L˜$ñ Ló    c                	st   € R V n         V P                  R4      V n        \        P                  ! 4       V n        R# )FTN)Ú
_is_activeÚget_handlersÚ	_handlersr   ÚKeyBindingsÚ	_bindings©Úselfó   &r   Ú__init__ZBypassModeManager.__init__3   s,   € Ø %ˆŒØCG×CTÑCTÐUYÓCZˆŒÜ2=×2IÒ2IÓ2KˆŽr   c               s$   € V ^8„  d   QhRRRRRR/# )r   ÚrefreshÚboolÚ
is_desktopr   zkeybindings.KeyBindingsr   r   r   r   r   r   8   s$   € ÷ ñ ØðØ15ðà	 ñr   c                s  € V'       dH   RV 2p\         P                  ! \         P                  VR4       V P                  4        V P                  # V P                  P                  4       '       d   V P                  4        V P                  # )z,Returns the bypass-mode-manager keybindings.z6BYPASS MODE MANAGER: Refreshing bindings. Is desktop: T)r   Úprint_messageÚ
LEVEL_INFOÚ_setup_bindingsr   Zis_empty)r   r    r"   Úmsgs   &&& r   Úget_bindingsZBypassModeManager.get_bindings8   sn   € ÷
 ØJÈ:È,ÐWˆCÜ×Ò¤× 0Ñ 0°#°tÔ<Ø× Ñ Ô"ð ~‰~Ðð ^‰^×$Ñ$×&Ò&Ø× Ñ Ô"à~‰~Ðr   c               s    € V ^8„  d   QhRRRR/# )r   r    r!   r   z(dict[str, input_event.InputEventHandler]r   r   r   r   r   r   F   s   € ÷ ñ  Dð Ð5]ñ r   c                sš   € V'       d9   Rp\         P                  ! \         P                  VR4       V P                  4        V P                  # )z)Returns the bypass-mode-manager handlers.z)BYPASS MODE MANAGER: Refreshing handlers.T)r   r#   r$   Ú_setup_handlersr   )r   r    r&   s   && r   r   ZBypassModeManager.get_handlersF   s:   € ÷ Ø=ˆCÜ×Ò¤× 0Ñ 0°#°tÔ<Ø× Ñ Ô"à~‰~Ðr   c               r   r   r   r   r   r   r   r   P   s   € ÷ 
ñ 
 ñ 
r   c                sŒ   € / V n         \        P                  ! V P                  \        P
                  4      V P                   R&   R# )zASets up and returns the bypass-mode-manager input event handlers.Úbypass_mode_toggleN)r   r   ZInputEventHandlerÚtoggle_enabledr   ZBYPASS_MODE_TOGGLEr   r   r   r(   Z!BypassModeManager._setup_handlersP   s6   € ð ˆŒä/:×/LÒ/LØ×Ñ¤×!<Ñ!<ó0
ˆ‰Ð+Ó,r   c               r   r   r   r   r   r   r   r   Y   s   € ÷ 
ñ 
 ñ 
r   c           
     sz  € \         P                  ! 4       V n        V P                  P                  \         P                  ! R\         P
                  \         P                  V P                  R,          ^R4      4       \        P                  ! 4       P                  V P                  V P                  R4      V n        R# )z9Sets up and returns the bypass-mode-manager key bindings.Z	BackSpacer)   TFN)r   r   r   ÚaddZ
KeyBindingZDEFAULT_MODIFIER_MASKZALT_MODIFIER_MASKr   r	   Úget_managerZoverride_key_bindingsr   r   r   r%   Z!BypassModeManager._setup_bindingsY   sˆ   € ô %×0Ò0Ó2ˆŒà‰×ÑÜ×"Ò"ØÜ×1Ñ1Ü×-Ñ-Ø—‘Ð3Õ4ØØóô		
ô *×5Ò5Ó7×MÑMØN‰N˜DŸN™N¨Eó
ˆŽr   c               r   )r   r   r!   r   r   r   r   r   r   n   s   € ÷ ñ ˜4ñ r   c                s   € V P                   # )z&Returns True if bypass mode is active.)r   r   r   r   Ú	is_activeZBypassModeManager.is_activen   s   € ð ‰Ðr   Nc               s$   € V ^8„  d   QhRRRRRR/# )r   Úscriptzdefault.ScriptÚeventzinput_event.InputEvent | Noner   r!   r   r   r   r   r   r   s   s$   € ÷ ñ Ø$ðØ-Jðà	ñr   c                s6  € V P                   '       * V n         V P                   '       g]   Ve    VP                  \        P                  4       RpVP	                  V4       \
        P                  ! 4       P                  V4       R# Ve    VP                  \        P                  4       RpVP                  V4       \
        P                  ! 4       P                  V4       V P                  P                   F   pVP                  P                  VRR7       K"  	  R# )zToggles bypass mode.zbypass mode disabledTzbypass mode enabled)Zinclude_grabs)r   Zpresent_messager   ZBYPASS_MODE_DISABLEDZadd_key_grabsr   r,   Zrefresh_orca_modifiersZBYPASS_MODE_ENABLEDZremove_key_grabsZunset_orca_modifiersr   Zkey_bindingsr+   )r   r.   r/   ZreasonZbindings   &&&  r   r*   Z BypassModeManager.toggle_enableds   sØ   € ð
 #Ÿo™oÔ-ˆŒØˆØÒ Ø×&Ñ&¤x×'DÑ'DÔEØ+ˆFØ× Ñ  Ô(Ü!×-Ò-Ó/×FÑFÀvÔNÙàÒØ×"Ñ"¤8×#?Ñ#?Ô@à&ˆØ×Ñ Ô'Ü×)Ò)Ó+×@Ñ@ÀÔHØ—~‘~×2Ô2ˆGØ×Ñ×#Ñ# G¸4Ð#Ö@ñ 3ñ r   )r   r   r   )FT)F)N)Z__name__Z
__module__Z__qualname__Z__firstlineno__Ú__doc__r   r'   r   r(   r%   r-   r*   Z__static_attributes__r   r   r   r   r   0   s.   † ÙGõL÷
÷õ
õ
õ*÷
ó r   r   Ú_managerc               r   )r   r   r   r   r   r   r   r   r   Ž   s   € ÷ ñ Ð&ñ r   c                 s   € \         # )z*Returns the bypass-mode-manager singleton.)r1   r   r   r   r,   r,   Ž   s	   € ô €Or   N)Ú__conditional_annotations__r0   Z
__future__r   Z__id__Z__version__Z__date__Z__copyright__Z__license__Ztypingr   Z r   r   r   r   r   r   r	   Zscriptsr
   r   r1   Z__annotations__r,   )r2   s   @r   Ú<module>r3      sl   øðô, Dõ #à€Ø€Ø€ð;€à€å  å Ý Ý Ý Ý Ý #Ý çÝ ÷Zñ Zñx 0Ó1€Ð
Ó 1÷r   