Give the user a hint on what hitting "Enter" will do in jsterm

NEW
Unassigned

Status

()

Firefox
Developer Tools: Console
--
enhancement
28 days ago
28 days ago

People

(Reporter: nchevobbe, Unassigned)

Tracking

Trunk
Points:
---

Firefox Tracking Flags

(firefox60 affected)

Details

Attachments

(1 attachment)

(Reporter)

Description

28 days ago
Created attachment 8945766 [details]
DSyRIBWWsAARHg7.png large.png

When you are typing an expression in the jsterm, it is unclear what "Enter" will do.
Depending on what you entered, you might get a new line, or the expression can be evaluated.
This can be confusing for some people at worst, at best, people don't even know that Enter can create a new line and force themselves to use Shift + Enter.

It would be nice if we could show a hint to the user. Maybe like we do when the user hit the Tab key when there's no autocompletion (we show a `<- no result` label).
I attached an idea on how this could look.
(Reporter)

Comment 1

28 days ago
Here's how it's done for the "no result" case : https://searchfox.org/mozilla-central/rev/062e1cf551f5bf3f0af33671b818f75a55ac497b/devtools/client/webconsole/jsterm.js#1303
Severity: normal → enhancement
You need to log in before you can comment on or make changes to this bug.