diff options
| author | Maxim Monastirsky <momonasmon@gmail.com> | 2018-04-29 01:00:54 +0300 |
|---|---|---|
| committer | Maxim Monastirsky <momonasmon@gmail.com> | 2018-04-29 12:04:09 +0200 |
| commit | 3df6b510a6dfeb940a799aaefa9a5f550b384667 (patch) | |
| tree | 3f2f0a962a805d01a7a9a0883f471fe7f8b66334 | |
| parent | 88612f2ae0e925d3017a8ae12a2d42c5f80c3027 (diff) | |
Edit context menu should follow shortcuts visibility settings
Change-Id: Ief43683dca14fa1c92a6d253da07a7f79eeb6832
Reviewed-on: https://gerrit.libreoffice.org/53616
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Maxim Monastirsky <momonasmon@gmail.com>
| -rw-r--r-- | vcl/source/control/edit.cxx | 2 | ||||
| -rw-r--r-- | vcl/uiconfig/ui/editmenu.ui | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/control/edit.cxx b/vcl/source/control/edit.cxx index 9d5204b82760..5832e8de55f9 100644 --- a/vcl/source/control/edit.cxx +++ b/vcl/source/control/edit.cxx @@ -2800,6 +2800,8 @@ VclPtr<PopupMenu> Edit::CreatePopupMenu() pPopup->SetAccelKey(pPopup->GetItemId("copy"), vcl::KeyCode( KeyFuncType::COPY)); pPopup->SetAccelKey(pPopup->GetItemId("paste"), vcl::KeyCode( KeyFuncType::PASTE)); pPopup->SetAccelKey(pPopup->GetItemId("delete"), vcl::KeyCode( KeyFuncType::DELETE)); + pPopup->SetAccelKey(pPopup->GetItemId("selectall"), vcl::KeyCode( KEY_A, false, true, false, false)); + pPopup->SetAccelKey(pPopup->GetItemId("specialchar"), vcl::KeyCode( KEY_S, true, true, false, false)); } return pPopup; } diff --git a/vcl/uiconfig/ui/editmenu.ui b/vcl/uiconfig/ui/editmenu.ui index a9fb3508531c..522fd2e0ebb7 100644 --- a/vcl/uiconfig/ui/editmenu.ui +++ b/vcl/uiconfig/ui/editmenu.ui @@ -63,7 +63,6 @@ <property name="can_focus">False</property> <property name="label" translatable="yes" context="editmenu|selectall">Select _All</property> <property name="use_underline">True</property> - <accelerator key="a" signal="activate" modifiers="GDK_CONTROL_MASK"/> </object> </child> <child> @@ -72,7 +71,6 @@ <property name="can_focus">False</property> <property name="label" translatable="yes" context="editmenu|specialchar">_Special Character...</property> <property name="use_underline">True</property> - <accelerator key="s" signal="activate" modifiers="GDK_SHIFT_MASK | GDK_CONTROL_MASK"/> </object> </child> </object> |
