[Libreoffice-commits] core.git: vcl/source

Saurav Chirania saurav.chir at gmail.com
Sat Mar 17 11:57:29 UTC 2018


 vcl/source/uitest/logger.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 7af8fede0e7d09ba2eafa3366c800769a4b1d9b4
Author: Saurav Chirania <saurav.chir at gmail.com>
Date:   Thu Mar 15 17:02:37 2018 +0530

    uitest logger: call correct function for key logging
    
    isMod2() and isMod3() functions have been used
    in place to isMod1() to generate correct key logs.
    
    Change-Id: Idcb83ad8bf00d31cac08cb7ff17ecca635b44967
    Reviewed-on: https://gerrit.libreoffice.org/51367
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>

diff --git a/vcl/source/uitest/logger.cxx b/vcl/source/uitest/logger.cxx
index a133c6910eb0..4f07f6994529 100644
--- a/vcl/source/uitest/logger.cxx
+++ b/vcl/source/uitest/logger.cxx
@@ -104,8 +104,8 @@ void UITestLogger::logKeyInput(VclPtr<vcl::Window> const & xUIElement, const Key
     sal_uInt16 nKeyCode = rEvent.GetKeyCode().GetCode();
     bool bShift = rEvent.GetKeyCode().IsShift();
     bool bMod1 = rEvent.GetKeyCode().IsMod1();
-    bool bMod2 = rEvent.GetKeyCode().IsMod1();
-    bool bMod3 = rEvent.GetKeyCode().IsMod1();
+    bool bMod2 = rEvent.GetKeyCode().IsMod2();
+    bool bMod3 = rEvent.GetKeyCode().IsMod3();
 
     std::map<OUString, sal_uInt16> aKeyMap = {
         {"ESC", KEY_ESCAPE},


More information about the Libreoffice-commits mailing list