Allow handlers to ask for mouse events

This commit is contained in:
Kovid Goyal
2021-09-28 09:32:53 +05:30
parent 276696414e
commit f3447d187d
3 changed files with 26 additions and 7 deletions

View File

@@ -15,7 +15,7 @@ from kitty.typing import (
KeyEventType, LoopType, MouseEvent, ScreenSize, TermManagerType
)
from .operations import pending_update
from .operations import MouseTracking, pending_update
if TYPE_CHECKING:
from kitty.file_transmission import FileTransmissionCommand
@@ -25,6 +25,7 @@ class Handler:
image_manager_class: Optional[Type[ImageManagerType]] = None
use_alternate_screen = True
mouse_tracking = MouseTracking.none
def _initialize(
self,