From 9ba0e9736deb0f1eacab02b8cc211f9c523fc085 Mon Sep 17 00:00:00 2001 From: Ilya Zhuravlev Date: Sat, 22 May 2021 12:04:51 -0400 Subject: [PATCH] keyboard_widget: fix iso enter handling in some layouts --- src/main/python/keyboard_widget.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/python/keyboard_widget.py b/src/main/python/keyboard_widget.py index b270e51..7fd1527 100644 --- a/src/main/python/keyboard_widget.py +++ b/src/main/python/keyboard_widget.py @@ -49,8 +49,13 @@ class KeyWidget: self.w2 = size * self.desc.width2 - spacing self.h2 = size * self.desc.height2 - spacing + self.rect2 = QRect(self.x2, self.y2, self.w2, self.h2) + self.bbox = self.calculate_bbox(self.rect) + self.bbox2 = self.calculate_bbox(self.rect2) self.polygon = QPolygonF(self.bbox + [self.bbox[0]]) + self.polygon2 = QPolygonF(self.bbox2 + [self.bbox2[0]]) + self.polygon = self.polygon.united(self.polygon2) self.draw_path = self.calculate_draw_path() self.draw_path2 = self.calculate_draw_path2()