%PDF- %PDF-
Direktori : /lib/python3/dist-packages/orca/__pycache__/ |
Current File : //lib/python3/dist-packages/orca/__pycache__/caret_navigation.cpython-312.pyc |
� g fJ � � � d Z dZdZdZdZdZddlmZ ddlmZ dd lm Z dd lm Z ddlmZ ddlmZ dd lm Z ddlmZ G d� d� Zy)z3Provides an Orca-controlled caret for text content.z$Id$z $Revision$z$Date$z$Copyright (c) 2013-2015 Igalia, S.L.�LGPL� )�cmdnames)�debug)�input_event)�keybindings)�messages)� orca_state)�settings_manager)�AXTextc � � e Zd ZdZd� Zd� Zdd�Zdd�Zd� Zd� Z d� Z dd �Zd � Zdd�Z d� Zd � Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zd� Zy)�CaretNavigationz=Implements the caret navigation support available to scripts.c �~ � d| _ | j d� | _ t j � | _ d | _ y )NFT)� _suspended�get_handlers� _handlersr �KeyBindings� _bindings�_last_input_event)�selfs �7/usr/lib/python3/dist-packages/orca/caret_navigation.py�__init__zCaretNavigation.__init__* s5 � � ����*�*�4�0���$�0�0�2���!%��� c �r � || j j � vry|j | j k( ryy)z0Returns True if handler is a navigation command.FT)r �values�function�toggle_enabled)r �handlers r �handles_navigationz"CaretNavigation.handles_navigation3 s6 � � �$�.�.�/�/�1�1�����t�2�2�2��r c � � |rCd}t j t j |d� | j � | j S | j j � r| j � | j S )z)Returns the caret-navigation keybindings.z&CARET NAVIGATION: Refreshing bindings.T)r �printMessage� LEVEL_INFO�_setup_bindingsr �isEmpty)r �refresh� is_desktop�msgs r �get_bindingszCaretNavigation.get_bindings>