summaryrefslogtreecommitdiff
path: root/writerfilter/source/rtftok/rtfdocumentimpl.cxx
diff options
context:
space:
mode:
authorMaxim Monastirsky <momonasmon@gmail.com>2020-03-12 01:26:51 +0200
committerHeiko Tietze <heiko.tietze@documentfoundation.org>2020-03-12 08:34:45 +0100
commit02cac3ee70760234db0fad44cb9095dfccc538a1 (patch)
treef351eb6275482eba7c50280e13396b2ce5fab7ca /writerfilter/source/rtftok/rtfdocumentimpl.cxx
parent34f91740cde8e77bd429f468ce0d797d8b0c2af4 (diff)
tdf#95854 Same shortcut for insert and edit comment
But at the same time keep them as two separate commands for tdf#84153. The idea is to define a global shortcut for the insert command (it's the same shortcut in all modules anyway), and then override it as a Calc-specific shortcut for the edit command. As a result, both menu (or context menu) items will show the same shortcut, but what will be actually executed by the shortcut is the edit command (as module specific commands have higher priority). This would work, as both commands share the same execution code. The only problem is that the edit command is disabled when the cell doesn't have a comment, and so can't be executed. Solve that by setting the FastCall sdi property on it (and reuse this general solution for the lok case too). Change-Id: I8a7280edb2aad7016ca31c63ca778b98fef85365 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/90354 Tested-by: Jenkins Tested-by: Heiko Tietze <heiko.tietze@documentfoundation.org> Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
Diffstat (limited to 'writerfilter/source/rtftok/rtfdocumentimpl.cxx')
0 files changed, 0 insertions, 0 deletions