Fehle in Tooltip gefixt

This commit is contained in:
2026-09-07 20:16:07 +02:00
parent cee8f57ab7
commit 37b6343506
8 changed files with 44 additions and 5 deletions

View File

@@ -563,6 +563,16 @@ void CodeEditor::keyPressEvent(QKeyEvent *event)
{
const int tabSize = m_settings->tabSize();
// -----------------------------------------------------------------------
// Escape: Signatur-Tooltip sofort schließen (unabhängig vom Cursor-
// Kontext). Das Variablen-Popup behandelt Escape bereits selbst weiter
// unten in m_varCompleter->handleKeyPress().
// -----------------------------------------------------------------------
if (event->key() == Qt::Key_Escape)
{
m_signatureHelper->dismiss();
}
// -----------------------------------------------------------------------
// Shift+Tab: Einrückung zurückziehen
// -----------------------------------------------------------------------
@@ -758,5 +768,6 @@ void CodeEditor::focusOutEvent(QFocusEvent *event)
{
QPlainTextEdit::focusOutEvent(event);
m_varCompleter->notifyFocusLost();
m_signatureHelper->notifyFocusLost();
}