As soon as the macro recorder is started, keystrokes don't go to the document from where it was started. The main window must get back the focus first (Click title bar e.g.) Also see https://ask.libreoffice.org/t/record-macro-in-calc-cant-see-my-keystrokes/74807/12 Testing with earlier versions (including 3.3) the bug didn't show. Somc higher versions I tested with (up to 7.3.2) showed tghe bug.
Can duplicate with 7.3.0.3 on Windows 10. Cannot duplicate with 7.2.5.2 on Ubuntu 20.04. Everything works exactly as expected.
Same effect when recording a macro in Writer.
No repro Version: 7.4.0.0.alpha0+ / LibreOffice Community Build ID: c97a3592c78ce276a353f95ce68c70a8a39174a0 CPU threads: 4; OS: Linux 5.13; UI render: default; VCL: gtk3 Locale: cs-CZ (cs_CZ.UTF-8); UI: en-US Calc: threaded Jumbo Repro in vclplugin GEN Version: 7.4.0.0.alpha0+ / LibreOffice Community Build ID: c97a3592c78ce276a353f95ce68c70a8a39174a0 CPU threads: 4; OS: Linux 5.13; UI render: default; VCL: x11 Locale: cs-CZ (cs_CZ.UTF-8); UI: en-US Calc: threaded Jumbo No repro Version: 6.3.0.0.alpha1+ Build ID: c98b1f1cd43b3e109bcaf6324ef2d1f449b34099 CPU threads: 4; OS: Linux 5.13; UI render: default; VCL: x11; Locale: cs-CZ (cs_CZ.UTF-8); UI-Language: en-US Calc: threaded
This seems to have begun at the below commit. Adding Cc: to Caolán McNamara; Could you possibly take a look at this one? Thanks bibisect-linux-64-6.4$ 88d92372c77724084659e1c01755de466204b5a5 is the first bad commit commit 88d92372c77724084659e1c01755de466204b5a5 Author: Jenkins Build User <tdf@pollux.tdf> Date: Sat Nov 2 19:52:31 2019 +0100 source b461740a9ca89eb3b036c366ba60f24c7aad2b60 https://git.libreoffice.org/core/+/b461740a9ca89eb3b036c366ba60f24c7aad2b60 weld SfxRecordingFloat_Impl utility window
Caolán McNamara committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/c641ca15f2a898b7ec66cf39ef4517a1221bab81 tdf#147782 retain focus in launching frame on first activate It will be available in 7.4.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
done in trunk, backport to 7-3 in gerrit
Caolán McNamara committed a patch related to this issue. It has been pushed to "libreoffice-7-3": https://git.libreoffice.org/core/commit/57ec3c4a40847b28390e1c208d5c771409ff1cab tdf#147782 retain focus in launching frame on first activate It will be available in 7.3.3. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Tested with LibO V 7.3.3.3 and 7.4.0.0 Beta1. Behavior still as described in the original report. Reopening
original attempt at a solution worked with gen under linux but not under windows
Caolán McNamara committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/d6c6fee69c1457e029095ef93779d971bc89c39d Resolves: tdf#147782 restore focus to launching frame asynchronously It will be available in 7.5.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Caolán McNamara committed a patch related to this issue. It has been pushed to "libreoffice-7-4": https://git.libreoffice.org/core/commit/2e602bab5d34fa9220da0885d07ff43537c27fcc Resolves: tdf#147782 restore focus to launching frame asynchronously It will be available in 7.4.1. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
that approach seems to work under windows as hoped for, additional backport to 7-3 in gerrit
Caolán McNamara committed a patch related to this issue. It has been pushed to "libreoffice-7-3": https://git.libreoffice.org/core/commit/4285d6f64a01b26b446f387db0a309340c3a49e4 Resolves: tdf#147782 restore focus to launching frame asynchronously It will be available in 7.3.6. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.