question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Ctrl+F in editor is only partially working, which is confusing

See original GitHub issue

Describe 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

  1. Open an editor on /learn
  2. Enter some code
  3. Place the cursor on any word in the code
  4. 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

image

Demo on https://microsoft.github.io/monaco-editor/ image

System

  • Device: Laptop
  • OS: Windows 10
  • Browser: Chrome
  • Version: 106.0.5249.119

Additional context

No response

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:15 (13 by maintainers)

github_iconTop GitHub Comments

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found