changeset 48c6ac548b4f in tryton:default
details: https://hg.tryton.org/tryton?cmd=changeset;node=48c6ac548b4f
description:
        Add selection shortcuts to editable list

        issue8898
        review289821002
diffstat:

 tryton/gui/window/view_form/view/list_gtk/widget.py |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (22 lines):

diff -r 534becadb304 -r 48c6ac548b4f 
tryton/gui/window/view_form/view/list_gtk/widget.py
--- a/tryton/gui/window/view_form/view/list_gtk/widget.py       Sun Apr 19 
16:34:15 2020 +0200
+++ b/tryton/gui/window/view_form/view/list_gtk/widget.py       Fri Apr 24 
21:54:03 2020 +0200
@@ -24,7 +24,8 @@
     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 @@
         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)

Reply via email to