summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2019-07-16 15:38:23 +0100
committerMichael Meeks <michael.meeks@collabora.com>2019-10-02 16:53:17 +0200
commitf51d4014de0d2da352ac1773c6464933c4bac836 (patch)
treec989e7038a99407e6aa6177803f941ded0348588 /sfx2
parent13fb343e3c48439c6cd7365f9a69ba2261885beb (diff)
Adopt a more brute-force approach for deleting text for now.
Change-Id: Ib5e75703a50ec89716542c45bc9dd58f0e631509 Reviewed-on: https://gerrit.libreoffice.org/79881 Tested-by: Jenkins Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/view/lokhelper.cxx13
1 files changed, 12 insertions, 1 deletions
diff --git a/sfx2/source/view/lokhelper.cxx b/sfx2/source/view/lokhelper.cxx
index f5d182ffcfbe..f9c559093861 100644
--- a/sfx2/source/view/lokhelper.cxx
+++ b/sfx2/source/view/lokhelper.cxx
@@ -319,8 +319,19 @@ namespace
switch (pLOKEv->mnEvent)
{
case VclEventId::WindowKeyInput:
- pLOKEv->mpWindow->KeyInput(pLOKEv->maKeyEvent);
+ {
+ sal_uInt16 nRepeat = pLOKEv->maKeyEvent.GetRepeat();
+ if (nRepeat > 0)
+ {
+ KeyEvent singlePress(pLOKEv->maKeyEvent.GetCharCode(),
+ pLOKEv->maKeyEvent.GetKeyCode());
+ for (sal_uInt16 i = 0; i <= nRepeat; ++i)
+ pLOKEv->mpWindow->KeyInput(singlePress);
+ }
+ else
+ pLOKEv->mpWindow->KeyInput(pLOKEv->maKeyEvent);
break;
+ }
case VclEventId::WindowKeyUp:
pLOKEv->mpWindow->KeyUp(pLOKEv->maKeyEvent);
break;