diff options
author | Yousuf Philips <philipz85@hotmail.com> | 2016-03-01 11:48:11 +0400 |
---|---|---|
committer | Yousuf Philips <philipz85@hotmail.com> | 2016-03-05 04:16:54 +0000 |
commit | d9f751a416db1a6d583e91d0d74b36185429245c (patch) | |
tree | 0bd0479c4820f110e41f4d17e0db8ec18038b449 /sc/source | |
parent | 61a91be4aaf6bdb40d6d1bde33b44eaf14014525 (diff) |
tdf#97906 Calc: Correct cell reference shortcut keys
Remove Shift+F4 shortcut key for cell reference and add it to the OOo
Legacy compatibility mode. Improve wording of cell reference error
message. Unify shortcut for Data Sources to Ctrl + Shift + F4.
Change-Id: I0f4ab3768d2663984bb294763c2e4b299c5e8186
Reviewed-on: https://gerrit.libreoffice.org/22803
Reviewed-by: Yousuf Philips <philipz85@hotmail.com>
Tested-by: Yousuf Philips <philipz85@hotmail.com>
Diffstat (limited to 'sc/source')
-rw-r--r-- | sc/source/ui/docshell/docsh.cxx | 12 | ||||
-rw-r--r-- | sc/source/ui/src/globstr.src | 2 |
2 files changed, 7 insertions, 7 deletions
diff --git a/sc/source/ui/docshell/docsh.cxx b/sc/source/ui/docshell/docsh.cxx index 09f87e6f441a..e216215a1534 100644 --- a/sc/source/ui/docshell/docsh.cxx +++ b/sc/source/ui/docshell/docsh.cxx @@ -3008,11 +3008,11 @@ void ScDocShell::ResetKeyBindings( ScOptionsUtil::KeyBindingType eType ) aCtrlShiftF4.Modifiers = awt::KeyModifier::MOD1 | awt::KeyModifier::SHIFT; aKeys.push_back(&aCtrlShiftF4); - // CTRL+SHIFT+F4 Mac - awt::KeyEvent aCtrlShiftF4Mac; - aCtrlShiftF4Mac.KeyCode = awt::Key::F4; - aCtrlShiftF4Mac.Modifiers = awt::KeyModifier::MOD3 | awt::KeyModifier::SHIFT; - aKeys.push_back(&aCtrlShiftF4Mac); + // SHIFT+F4 + awt::KeyEvent aShiftF4; + aShiftF4.KeyCode = awt::Key::F4; + aShiftF4.Modifiers = awt::KeyModifier::SHIFT; + aKeys.push_back(&aShiftF4); // Remove all involved keys first, because swapping commands don't work // well without doing this. @@ -3028,13 +3028,13 @@ void ScDocShell::ResetKeyBindings( ScOptionsUtil::KeyBindingType eType ) xScAccel->setKeyEvent(aAltDown, ".uno:DataSelect"); xScAccel->setKeyEvent(aF4, ".uno:ToggleRelative"); xScAccel->setKeyEvent(aCtrlShiftF4, ".uno:ViewDataSourceBrowser"); - xScAccel->setKeyEvent(aCtrlShiftF4Mac, ".uno:ViewDataSourceBrowser"); break; case ScOptionsUtil::KEY_OOO_LEGACY: xScAccel->setKeyEvent(aDelete, ".uno:Delete"); xScAccel->setKeyEvent(aBackspace, ".uno:ClearContents"); xScAccel->setKeyEvent(aCtrlD, ".uno:DataSelect"); xScAccel->setKeyEvent(aF4, ".uno:ViewDataSourceBrowser"); + xScAccel->setKeyEvent(aShiftF4, ".uno:ToggleRelative"); break; default: ; diff --git a/sc/source/ui/src/globstr.src b/sc/source/ui/src/globstr.src index b1d72d36992e..01fa1e4a597d 100644 --- a/sc/source/ui/src/globstr.src +++ b/sc/source/ui/src/globstr.src @@ -1391,7 +1391,7 @@ Resource RID_GLOBSTR }; String STR_ERR_NOREF { - Text [ en-US ] = "No references found." ; + Text [ en-US ] = "No cell references are found in the selected cells." ; }; String STR_ERR_LINKOVERLAP { |