View Single Post
Old 03-24-2016, 01:25 PM   #25
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,841
Karma: 6120478
Join Date: Nov 2009
Device: many
Hi sdjskr

I spent some time trying to track this down. I simply can not recreate this at all. When you hit return the file is getting a simple carriage return linefeed pair as expected. No strange chars are being generated.

It could be a lost focus issue. So when the bug happens in BookView, please try clicking the "<>" icon to switch to CodeView and then back? Does the cursor come back?

If not, please try clicking the "<>" icon again to switch to CodeView and then make some small meaningless change in CodeView and then back to BookView? Does this make the cursor return?

If not caused by the widget losing focus, I did find some Qt code for QWebPage that had the following method:

Code:
void QWebPagePrivate::inputMethodEvent(QInputMethodEvent *ev)
that shows when an QinputMethodEvent has a cursor attribute with 0 length it can actually make the cursor invisible:

Code:
case QInputMethodEvent::Cursor: {
            frame->selection()->setCaretVisible(a.length); //if length is 0 cursor is invisible
So if not focus related it appears that somehow your input method is generating events for the cursor with 0 length attributes that are making the cursor invisible. I am just not sure why. Your video shows that the cursor position is still kept, and works but that the cursor itself was simply made invisible.

Since it appears that other Windows users can not recreate your bug either, my guess it is some conflict between other Windows system software you are using and the Qt library that comes with Sigil.

Any bug would be inside Qt and not something Sigil could fix. That said, we may be able to intercept and filter out that event if we can figure out what is generating it.

KevinH

Quote:
Originally Posted by sdjskr View Post
Hi, again!!!

At first, I wrote some Korean and Alphabet in a notepad to demonstrate how the cursor turns into. As of Sigil editor, I cannot see where I am typing because of the missing cursor as soon as I hit Enter. It's kind of frustrating.

https://youtu.be/yRyjTxIQ2dQ

I expect that to be solved soon! best regard!!!!

Last edited by KevinH; 03-24-2016 at 02:32 PM.
KevinH is offline   Reply With Quote