Mercurial > hg > octave-lyh
changeset 17281:9d584be736fc
Linux GUI: clear terminal selection on pressing a displayable key
* libgui/qterminal/libqterminal/unix/Screen.cpp
(Screen::ShowCharacter): Modify function from checking if selectionn is still valid, to clearing selection.
author | John Donoghue <john.donoghue@ieee.org> |
---|---|
date | Sun, 18 Aug 2013 18:19:48 -0400 |
parents | 8ce6cdd272eb |
children | 0a09d4b40767 |
files | libgui/qterminal/libqterminal/unix/Screen.cpp |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/libgui/qterminal/libqterminal/unix/Screen.cpp +++ b/libgui/qterminal/libqterminal/unix/Screen.cpp @@ -788,8 +788,8 @@ lastPos = loc(cuX,cuY); - // check if selection is still valid. - checkSelection(cuX,cuY); + // clear selection on text input + clearSelection (); Character& currentChar = screenLines[cuY][cuX];