Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KeyFilter::autoClose() at end-of-line #5

Closed
fairybow opened this issue Feb 25, 2023 · 1 comment
Closed

KeyFilter::autoClose() at end-of-line #5

fairybow opened this issue Feb 25, 2023 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@fairybow
Copy link
Owner

fairybow commented Feb 25, 2023

KeyFilter::autoClose() at end-of-line CTD (access violation reading location, probably nullptr / QChar())


It's an interaction between the above and QPlainTextEdit::centerCursor() (used for typewriter positioning)


Tentatively, this has been fixed by blocking signals here:

void PlainTextEdit::keyPresses(QVector<QKeyEvent*> events)
{
    blockSignals(true);
    for (auto& event : events)
        QPlainTextEdit::keyPressEvent(event);
    blockSignals(false);
}
@fairybow fairybow added the bug Something isn't working label Feb 25, 2023
@fairybow fairybow self-assigned this Feb 25, 2023
@fairybow
Copy link
Owner Author

052b7ff

Keeping an eye on it for the moment, though!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant