diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-09-25 01:00:10 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-09-25 23:14:15 +0000 |
commit | c6ed68c6324f909f3338cde0983aaaff17a801ab (patch) | |
tree | 40d50fc7ec3a1447308f9acf7c3403824bf687ff | |
parent | 8a11d34c7e08218b5ff9da4870c460297f312332 (diff) |
handle the debug output earlier
Change-Id: I4a47fd063ca9f57d6f5d38abcc84e21899f28876
Reviewed-on: https://gerrit.libreoffice.org/29259
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
-rw-r--r-- | sc/source/ui/view/gridwin.cxx | 48 |
1 files changed, 25 insertions, 23 deletions
diff --git a/sc/source/ui/view/gridwin.cxx b/sc/source/ui/view/gridwin.cxx index 6d32198d0349..b36b3af592c3 100644 --- a/sc/source/ui/view/gridwin.cxx +++ b/sc/source/ui/view/gridwin.cxx @@ -3258,6 +3258,31 @@ void ScGridWindow::KeyInput(const KeyEvent& rKEvt) { // Cursor control for ref input dialog const vcl::KeyCode& rKeyCode = rKEvt.GetKeyCode(); + +#ifdef DBG_UTIL + + if (rKeyCode.IsMod1() && rKeyCode.IsShift()) + { + if (rKeyCode.GetCode() == KEY_F12) + { + dumpColumnInformationPixel(); + } + else if (rKeyCode.GetCode() == KEY_F11) + { + dumpGraphicInformation(); + } + else if (rKeyCode.GetCode() == KEY_F10) + { + dumpColumnInformationHmm(); + } + else if (rKeyCode.GetCode() == KEY_F9) + { + dumpCellProperties(); + } + } + +#endif + if( SC_MOD()->IsRefDialogOpen() ) { if( !rKeyCode.GetModifier() && (rKeyCode.GetCode() == KEY_F2) ) @@ -3369,29 +3394,6 @@ void ScGridWindow::KeyInput(const KeyEvent& rKEvt) } } -#ifdef DBG_UTIL - - if (rKeyCode.IsMod1() && rKeyCode.IsShift()) - { - if (rKeyCode.GetCode() == KEY_F12) - { - dumpColumnInformationPixel(); - } - else if (rKeyCode.GetCode() == KEY_F11) - { - dumpGraphicInformation(); - } - else if (rKeyCode.GetCode() == KEY_F10) - { - dumpColumnInformationHmm(); - } - else if (rKeyCode.GetCode() == KEY_F9) - { - dumpCellProperties(); - } - } - -#endif Window::KeyInput(rKEvt); } |