diff options
author | Luboš Luňák <l.lunak@suse.cz> | 2012-12-19 19:33:18 +0100 |
---|---|---|
committer | Luboš Luňák <l.lunak@suse.cz> | 2012-12-20 12:12:07 +0100 |
commit | 4241ef2325d803914e9c29d8d6ec0e7c49f6996c (patch) | |
tree | d62339c78fd55af0664e71b7dbcebb020133f4bd | |
parent | bdd9d06c129344f8a10cbb691c129dc914600862 (diff) |
when clicking at a text placeholder, put the cursor at the start
Rather than at the end. There is still some flicker, because
SwEditWin::MouseButtonDown() selects it first too and puts the cursor
at the end, but I've wasted already way too much time and trying
to avoid that or the flicker.
Change-Id: Ib0f00f3f955e64427dba8dd1c6ae7123afc17b34
-rw-r--r-- | sw/source/ui/wrtsh/wrtsh2.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sw/source/ui/wrtsh/wrtsh2.cxx b/sw/source/ui/wrtsh/wrtsh2.cxx index 72d4cbd8324f..01e4e31635e0 100644 --- a/sw/source/ui/wrtsh/wrtsh2.cxx +++ b/sw/source/ui/wrtsh/wrtsh2.cxx @@ -257,7 +257,10 @@ void SwWrtShell::ClickToField( const SwField& rFld ) } - Right( CRSR_SKIP_CHARS, sal_True, 1, sal_False ); // Feld selektieren + StartAllAction(); + Right( CRSR_SKIP_CHARS, true, 0, false ); // Select the field. + NormalizePam(); // Cursor at the beginning of it. + EndAllAction(); if( nSlotId ) { |