[Libreoffice-bugs] [Bug 118723] New: Key events can be handled in wrong order by Basic scripts

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Thu Jul 12 12:39:41 UTC 2018


https://bugs.documentfoundation.org/show_bug.cgi?id=118723

            Bug ID: 118723
           Summary: Key events can be handled in wrong order by Basic
                    scripts
           Product: LibreOffice
           Version: 5.4.7.2 release
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: fedorov-ao at yandex.ru

Created attachment 143516
  --> https://bugs.documentfoundation.org/attachment.cgi?id=143516&action=edit
test script

Problem: 
Key events appear to be handled in last in-first out order in VBS scripts that
are executed by LO Writer. 
This can change the order in which input events are handled, which in turn
makes input handling very performance-sensitive and can break certain macros
and extensions that rely on input. 
For example, in vibreoffice extension (an attempt to emulate vi in LibreOffice)
such handling causes occasional character swaps during fast typing in "insert"
mode. Streamlining the corresponding script code path alleviates this problem
somewhat, but does not remove it completely.

Steps to reproduce:
Use attached script, add it to Writer and run reg() subroutine. This will
install key events handler, which does not consume key press events, but takes
2 seconds to process an "a" key press event.
Open new document and type "as".

Observed behaviour:
It will output "s", wait approximately 2 seconds, and output "a".

Expected behaviour:
Wait 2 seconds and output "as" at once.

Version: 5.4.7.2
OS: All

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20180712/67cd839c/attachment.html>


More information about the Libreoffice-bugs mailing list