diff options
author | Miklos Vajna <vmiklos@collabora.com> | 2022-08-02 16:55:26 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2022-08-02 17:45:37 +0200 |
commit | e2a84cd740c0e58c08beb5c4169877a440cf53e1 (patch) | |
tree | f9c72a7686c6f2ba504c1f3db707284a6d82f2c0 /COPYING | |
parent | 6185a27db46bf5cba404e669eaf3a1c78f4a8607 (diff) |
sw: make shift-doubleclick on graphics open the graphic dialog
Double-clicking on images without modifier keys or with ctrl triggered
the graphic dialog. However, shift-doubleclick did not.
One drawback of this behavior is that extensions can catch the
.uno:GraphicDialog command for plain or ctrl double-click, but they
can't customize the behavior for shift double-click. Another problem was
that if you had a text selection and you shift-clicked (single click) on
an image, then no image selection was created. (While this works in
Word.)
Fix the problem by extending the code handling mouse button events in
Writer in case the button type is left, the only modifier is shift and
we get one or two clicks:
- if the position points to an object that should be selected, then
shift-click now selects that object
- if the user shift-double-clicks on an image, then we open the graphic
dialog
This improves consistency, as double-click with no/ctrl/shift modifiers
now all dispatch .uno:GraphicDialog. Do the double-click tweak only for
graphics, other shape types can be added in the future if needed.
Change-Id: I2edc70a399a9d2662b476a1bbc4c5f087ce8e59c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/137696
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
Diffstat (limited to 'COPYING')
0 files changed, 0 insertions, 0 deletions