The shift and ALT keys also do the same thing - delete the selection. The strange characters get inserted when I press <SHIFT>. This is using qt6, of course.
On Monday, April 12, 2021 at 3:58:32 PM UTC-4 [email protected] wrote: > Major problem - in the body pane, when I highlight a line of text, then > press <CNTL>, the line vanishes. I can get it back with <CTRL-C>. > Sometimes it left a residue of strange non-ascii characters, but I'm not > sure what else I did to cause that (see attached screenshot). > > On Monday, April 12, 2021 at 3:46:35 PM UTC-4 [email protected] wrote: > >> On Monday, April 12, 2021 at 2:59:44 PM UTC-4 [email protected] wrote: >> >>> I got qt_text to work - at least on the surface - with these changes: >>> >> #width = self.fm.width(str(max(1000, >>> self.highest_line))) + self.w_adjust >>> if isQt6: >>> width = self.fm.boundingRect(str(max(1000, >>> self.highest_line))).width() >>> else: >>> width = self.fm.width(str(max(1000, self.highest_line))) + >>> self.w_adjust >>> if self.width() != width: >>> self.setFixedWidth(width) >>> >>> It's possible that *self.setFixedWidth(width)* has had an API change - >>> I didn't look it up to see. Perhaps this line didn't get executed so an >>> error didn't show up. >>> >> -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/leo-editor/6d960564-f9eb-4d07-b841-2afef6fa7733n%40googlegroups.com.
