Closed Bug 1532939 Opened 7 years ago Closed 7 years ago

Support Cmd + K to clear the console

Categories

(DevTools :: Console, enhancement)

66 Branch
enhancement
Not set
normal

Tracking

(firefox67 fixed)

RESOLVED FIXED
Firefox 67
Tracking Status
firefox67 --- fixed

People

(Reporter: timonvanspronsen, Assigned: helenaenred, Mentored)

Details

(Keywords: dev-doc-complete, Whiteboard: [good first verify])

Attachments

(2 files)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:66.0) Gecko/20100101 Firefox/66.0

Steps to reproduce:

I opened the console (cmd+alt+i) and tried to clear the console using the keyboard shortcut: cmd+k

Actual results:

Instead of clearing the console (I'm focused on the console input) it changes the focus to the address bar and replaces the input of the address bar to ? .

Expected results:

It should've cleared the console.

Component: Untriaged → Console
Product: Firefox → DevTools

Hello Tim, thanks for the report!
We do support <kbd>Ctrl+L</kbd> to clear the console.
Is there any places where we tell people to use <kbd>Cmd+K</kbd> ?

Flags: needinfo?(timonvanspronsen)

Ah that makes sense, I think I remembered it wrong. That being said, cmd+k is the default way to clear the terminal on Mac (ctrl+l also works but cmd+k is more widely used if you search for "clear terminal mac"), also Chrome supports both cmd+k and ctrl+l.

Flags: needinfo?(timonvanspronsen)

okay, I changed the bug title. Thanks for the explanation, I think it would be reasonable to have it.

Severity: normal → enhancement
Status: UNCONFIRMED → NEW
Ever confirmed: true
Summary: cmd+k doesn't clear the console → Support Ctrl/Cmd + K to clear the console

Thank you very much for taking it into consideration 🙏

Assigning Helena as we discussed it over Slack

Assignee: nobody → helenaenred
Status: NEW → ASSIGNED
Mentor: nchevobbe

This is a common shortcut on OSX to clear terminal output, and something that Chrome does,
so it makes sense to implement it in our console as well.

Pushed by nchevobbe@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/f3448180f267 Add Cmd + K support to clear the console on OSX. r=nchevobbe.
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 67

I've created an issue in MDN/Sprints for it: #1234

Whiteboard: [good first verify]

This is not working in Dev 67.0b5 (on 3/28/19). When I hit Ctrl+K on Windows, the focus jumps to the search box and does the same in Firefox Developer 67.0b5 in Linux. Is this not implemented yet?

Flags: needinfo?(helenaenred)

Hello Irene, this is an OSX only change, I renamed the bug title to make it clearer.
Sorry about the confusion!

Summary: Support Ctrl/Cmd + K to clear the console → Support Cmd + K to clear the console

Hello Irene, this is an OSX only change, I renamed the bug title to make it clearer.
Sorry about the confusion!

Thank you for confirming this. I appreciate it.(In reply to Nicolas Chevobbe from comment #11)

just cleaning ni, awesome work Helena!

Flags: needinfo?(helenaenred)

Documentation changes completed.

Please see: MDN Sprints Issue #1234

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: