From 0efd5af63888cb3bedbf0c059c58051ebb469aa2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 24 Apr 2020 21:54:03 +0200 Subject: [PATCH] Add selection shortcuts to editable list issue8898 review289821002 --- tryton/gui/window/view_form/view/list_gtk/widget.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tryton/gui/window/view_form/view/list_gtk/widget.py b/tryton/gui/window/view_form/view/list_gtk/widget.py index e917cc7543..3d58af108a 100644 --- a/tryton/gui/window/view_form/view/list_gtk/widget.py +++ b/tryton/gui/window/view_form/view/list_gtk/widget.py @@ -24,7 +24,8 @@ from tryton.common.cellrendererclickablepixbuf import \ CellRendererClickablePixbuf from tryton.common import data2pixbuf from tryton.common.completion import get_completion, update_completion -from tryton.common.selection import SelectionMixin, PopdownMixin +from tryton.common.selection import ( + SelectionMixin, PopdownMixin, selection_shortcuts) from tryton.common.datetime_ import CellRendererDate, CellRendererTime from tryton.common.domain_parser import quote from tryton.config import CONFIG @@ -972,6 +973,8 @@ class Selection(GenericText, SelectionMixin, PopdownMixin): super(Selection, self).editing_started(cell, editable, path) record, field = self._get_record_field_from_path(path) + selection_shortcuts(editable) + def set_value(*a): return self.set_value(editable, record, field) editable.get_child().connect('activate', set_value)