Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CLOSED] Editor-related HTML menus are non-functional #4887

Open
core-ai-bot opened this issue Aug 29, 2021 · 2 comments
Open

[CLOSED] Editor-related HTML menus are non-functional #4887

core-ai-bot opened this issue Aug 29, 2021 · 2 comments

Comments

@core-ai-bot
Copy link
Member

Issue by busykai
Monday Sep 23, 2013 at 22:37 GMT
Originally opened as adobe/brackets#5310


The HTML menus associated with the actions on the current editor (copy, paste, select etc.) are not functional. To reproduce: change the line in src/utils/Global.js from

    global.brackets.nativeMenus = (!global.brackets.inBrowser && (global.brackets.platform !== "linux"));

to

    global.brackets.nativeMenus = false;

start the editor and try any of the above mentioned menu items, e.g. Select All.

@core-ai-bot
Copy link
Member Author

Comment by busykai
Monday Sep 23, 2013 at 22:39 GMT


The root cause of this is that bootstrap implementation of dropdown (used to implement the HTML menu) is calling $(this).focus() explicitly which, in turn, causes current CM instance to lose the focus and the command cannot get the current editor instance to act upon.

@core-ai-bot
Copy link
Member Author

Comment by RaymondLim
Tuesday Sep 24, 2013 at 15:50 GMT


@busykai Nice catch! This was broken when we updated bootstrap to the newer version in sprint 26.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant