Ctrl+F in editor is only partially working, which is confusing
See original GitHub issueDescribe the Issue
I saw this forum post: https://forum.freecodecamp.org/t/technical-documentation-page-build-a-technical-documentation-page/564364 It seems the camper is confused by the red highlight appeared in the editor.
And I found that I could replicate the red highlight similar to the one in the forum post by pressing Ctrl+F
.
After some discussion with the dev team, it turned out that this is Monaco editor’s “Find” functionality partially displayed. The highlight on the code is shown, but the Find panel on top right is hidden.
Affected Page
Any page with fCC editor
Steps to Reproduce
- Open an editor on /learn
- Enter some code
- Place the cursor on any word in the code
- Press Ctrl+F
Expected behavior
-
If we want to enable Monaco editor’s “find” functionality, show the panel properly
-
If we don’t, then:
- Don’t show the red highlight
- We could also enable the browser’s default search function with Ctrl+F instead?
Screenshots
Demo on https://microsoft.github.io/monaco-editor/
System
- Device: Laptop
- OS: Windows 10
- Browser: Chrome
- Version: 106.0.5249.119
Additional context
No response
Issue Analytics
- State:
- Created a year ago
- Comments:15 (13 by maintainers)
Top Results From Across the Web
editor - How to fix ctrl+f on visual studio code - Stack Overflow
For Visual Studio Code, check the setting: Editor > Find: Auto Find in Selection. to never or multiline . Did yours get set...
Read more >MySQL Bugs: #56163: CTRL-F does not work in query editor ...
When trying Cmd-F (Apple alternative to Ctrl-F) when in the SQL editor, the editor loses focus and no dialog appears to enter the...
Read more >Bug: Ctrl+F does not always populate the "Find What" dialog ...
Despite this confusion, as long as "Automatically populate find What with text from the editor" is ticked, then this is elligible as a...
Read more >“ctrl”+“F”—keyboard shortcut of “Find” option—is not working ...
But in chrome this option works. Actually IE also has option of crtl + F for search option. I tried removing all addins...
Read more >Pretty HTML Editor - Ctrl F Won't Work - Page 2
In exploring the "Pretty" HTML Editor, I have found that using Ctrl-F to find elements on a page does not work properly.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
We do explicitly disable (hide) it: https://github.com/freeCodeCamp/freeCodeCamp/blob/6f5b372f75a2f98818702d088c4e7bb62834c4a8/client/src/templates/Challenges/classic/classic.css#L14-L16
@CallmeHongmaybe I think this is resolved.
@sidemt now that https://github.com/freeCodeCamp/freeCodeCamp/pull/48241 is in, can we close this?