ajaxorg / ace

Ace (Ajax.org Cloud9 Editor)
https://ace.c9.io
Other
26.72k stars 5.28k forks source link

key bindings: keyboard shortcuts stop working after pressing [win + space] #5035

Open Julistah opened 1 year ago

Julistah commented 1 year ago

Describe the bug

after pressing [win + space] (for language change) autocomplete on [ctrl + space] stops working, usage of [ctrl + f] calls not built-in ace's searchbar but browser searchbar.

Expected Behavior

usage of [win+space] should not break ace's keyboard shortcuts

Current Behavior

to check the behavior i created a new binding to a key combination with console.log inside to see if it is triggered after [win+space] pressing, and as the result, this custom binding was not triggered after [win+space] pressing even though it worked before.

Reproduction Steps

press [ctrl+f] in ace editor AR: ace's searchbar is opened

press [ctrl+space] AR: ace's autocomplete pop-up is opened

press [win+space] in ace editor press [ctrl+f] in ace editor ER: ace's searchbar is opened AR: browser's searchbar is opened

press [ctrl+space] ER: ace's autocomplete pop-up is opened AR: ace's autocomplete pop-up is NOT opened

Possible Solution

No response

Additional Information/Context

creating event listener with [ctrl+space] key parsing and following calling of execCommand("startAutocomplete") helps to fix it.

possible workaround: pressing single [win] key

Ace Version / Browser / OS / Keyboard layout

1.2.7 / Chrome / Windows / eng-ru-ua

github-actions[bot] commented 8 months ago

This issue has not received any attention in 1 year. If you want to keep this issue open, please leave a comment below and auto-close will be canceled.