Date: prev next · Thread: first prev next last
2011 Archives by date, by thread · List index


When the user selects "Pages" radio button in the Range section, it is very
reasonable to expect that she would now want to specify the range. Thus moving
the focus automatically to the page range edit box would save the user a mouse
click.a

Code is contributed under the LGPLv3+ / MPL.

Signed-off-by: Maxim Iorsh <iorsh@users.sourceforge.net>
---
 filter/source/pdf/impdialog.cxx |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/filter/source/pdf/impdialog.cxx b/filter/source/pdf/impdialog.cxx
index 67ba921..b774586 100644
--- a/filter/source/pdf/impdialog.cxx
+++ b/filter/source/pdf/impdialog.cxx
@@ -651,6 +651,8 @@ IMPL_LINK( ImpPDFTabGeneralPage, TogglePagesHdl, void*, EMPTYARG )
     maEdPages.Enable( maRbRange.IsChecked() );
     //Sym2_5805, When the control is disabled, it is also readonly. So here, it is not necessary 
to set it as readonly.
     //maEdPages.SetReadOnly( !maRbRange.IsChecked() );
+    if ( maRbRange.IsChecked() )
+       maEdPages.GrabFocus();
     return 0;
 }
 
-- 
1.7.3.4


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.