Skip to content

Commit

Permalink
corrected select all key to position cursor at end
Browse files Browse the repository at this point in the history
when selecting all using the key sequence (control+a), the cursor was
not being moved to the end of the document, which prevented the current
line form being reported if it was modified (the select all action used
from the edit or context menus were already working properly) - this was
correct by making the select all key sequence call the select all
function
  • Loading branch information
thunder422 committed Mar 9, 2013
1 parent a9db922 commit 6a7c9c5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions editbox.cpp
Expand Up @@ -117,6 +117,11 @@ void EditBox::keyPressEvent(QKeyEvent *event)
break;

default: // check for key sequences
if (event->matches(QKeySequence::SelectAll))
{
selectAll();
return;
}
}
QPlainTextEdit::keyPressEvent(event);
m_ignoreChange = false;
Expand Down

0 comments on commit 6a7c9c5

Please sign in to comment.