Closed
Bug 780073
Opened 13 years ago
Closed 13 years ago
Add keyboard shortcut tooltips across the debugger UI
Categories
(DevTools :: Debugger, defect)
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 785889
People
(Reporter: vporof, Assigned: avp)
References
Details
(Whiteboard: [good first bug][mentor=vporof@mozilla.com][lang=js])
Attachments
(2 files, 2 obsolete files)
|
1.41 KB,
patch
|
vporof
:
feedback+
|
Details | Diff | Splinter Review |
|
1.69 KB,
patch
|
vporof
:
feedback+
|
Details | Diff | Splinter Review |
They're totally undiscoverable right now, and we're pretty original in choosing them :) Adding some of the keys as tooltips should help.
| Reporter | ||
Updated•13 years ago
|
Whiteboard: [tilt][good first bug][mentor=vporof@mozilla.com][lang=js]
| Reporter | ||
Updated•13 years ago
|
Whiteboard: [tilt][good first bug][mentor=vporof@mozilla.com][lang=js] → [good first bug][mentor=vporof@mozilla.com][lang=js]
| Assignee | ||
Comment 1•13 years ago
|
||
Hi Victor,
I am interested in working on this bug. Could you please help me on getting started
with this bug.
Thanks.
| Reporter | ||
Comment 2•13 years ago
|
||
(In reply to Abhishek Potnis [:coolcoder91] from comment #1)
> Hi Victor,
>
> I am interested in working on this bug. Could you please help me on getting
> started
> with this bug.
>
> Thanks.
Hey cool coder ;)
Thanks for the interest! You'll need to modify the values of the "tooltiptext" attribute on some elements. For now, we need to do this for the resume, step over, step in and step-out buttons.
You'll find these buttons defined in browser/devtools/debugger.xul. It's as easy as checking what the value of the "tooltiptext" attribute is, and modify the corresponding string in browser/locales/en-US/chrome/browser/devtools/debugger.dtd.
The keyset with the id "threadStateKeys" (from debugger.xul) shows you what the keyboard shortcuts are for these buttons. Simply append those to the corresponding strings in debugger.dtd.
Luckily you won't need to write any tests for this patch :)
Assignee: nobody → abhishekp.bugzilla
Status: NEW → ASSIGNED
| Assignee | ||
Comment 3•13 years ago
|
||
I have edited the file debugger.dtd as suggested by you, but I did not find any
String to edit for the resume button.
Attachment #651163 -
Flags: feedback?(vporof)
| Reporter | ||
Comment 4•13 years ago
|
||
Comment on attachment 651163 [details] [diff] [review]
edited the debugger.dtd file
Review of attachment 651163 [details] [diff] [review]:
-----------------------------------------------------------------
Good start.
Yeah, for the play/resume button we add those strings dynamically, so you'll need to edit browser/locales/en-US/chrome/browser/devtools/debugger.properties, specifically pauseTooltip and resumeTooltip.
::: browser/locales/en-US/chrome/browser/devtools/debugger.dtd
@@ +45,4 @@
>
> <!-- LOCALIZATION NOTE (debuggerUI.stepOutButton): This is the tooltip for the
> - button that steps out of a function call. -->
> +<!ENTITY debuggerUI.stepOutButton.tooltip "Step Out F8">
Please don't add so much spacing between the text and shortcut. Something like "Step Out (F8)" should do the trick".
Attachment #651163 -
Flags: feedback?(vporof) → feedback+
| Assignee | ||
Comment 5•13 years ago
|
||
Attachment #651163 -
Attachment is obsolete: true
Attachment #651170 -
Flags: feedback?(vporof)
| Assignee | ||
Comment 6•13 years ago
|
||
Attachment #651171 -
Flags: feedback?(vporof)
| Reporter | ||
Comment 7•13 years ago
|
||
Comment on attachment 651170 [details] [diff] [review]
removed the extra spaces from debugger.dtd
Review of attachment 651170 [details] [diff] [review]:
-----------------------------------------------------------------
All of this looks good to me. Just one minor change and we're good for landing.
::: browser/locales/en-US/chrome/browser/devtools/debugger.dtd
@@ +45,4 @@
>
> <!-- LOCALIZATION NOTE (debuggerUI.stepOutButton): This is the tooltip for the
> - button that steps out of a function call. -->
> +<!ENTITY debuggerUI.stepOutButton.tooltip "Step Out (F8)">
The shortcut for step out is Shift+F8, as defined in debugger.xul. Please change this here to Step Out (Shift+F8). Don't worry about using U+21E7 ⇧ for now, we can do it in a follow up.
Attachment #651170 -
Flags: feedback?(vporof) → feedback+
| Reporter | ||
Comment 8•13 years ago
|
||
Comment on attachment 651171 [details] [diff] [review]
edited debugger.properties
Review of attachment 651171 [details] [diff] [review]:
-----------------------------------------------------------------
Yup, this is good.
Attachment #651171 -
Flags: feedback?(vporof) → feedback+
| Assignee | ||
Comment 9•13 years ago
|
||
Attachment #651170 -
Attachment is obsolete: true
Attachment #654584 -
Flags: feedback?(vporof)
| Reporter | ||
Updated•13 years ago
|
Attachment #654584 -
Flags: feedback?(vporof) → feedback+
| Reporter | ||
Comment 10•13 years ago
|
||
Rob, wanna review these so we can land them?
| Reporter | ||
Updated•13 years ago
|
Attachment #651171 -
Flags: review?(rcampbell)
| Reporter | ||
Updated•13 years ago
|
Attachment #654584 -
Flags: review?(rcampbell)
Comment 11•13 years ago
|
||
Comment on attachment 651171 [details] [diff] [review]
edited debugger.properties
# LOCALIZATION NOTE (pauseLabel): The label that is displayed on the pause
# button when the debugger is in a running state.
-pauseTooltip=Click to pause
+pauseTooltip=Click to pause (F6)
you need to change the property name to something new here so our localization tools can pick it up. Common practice is to append a number to the end of the name like:
pauseTooltip1=Click to pause (F6)
(I know, it's dumb. It's a convention we have to live with)
# LOCALIZATION NOTE (resumeLabel): The label that is displayed on the pause
# button when the debugger is in a paused state.
-resumeTooltip=Click to resume
+resumeTooltip=Click to resume (F6)
same here.
cancelling review. If you like, we can update the patch to deal with the above issues or you can do it yourself.
thanks!
Attachment #651171 -
Flags: review?(rcampbell)
Comment 12•13 years ago
|
||
Comment on attachment 654584 [details] [diff] [review]
edited debugger.dtd
- the button that steps over a function call. -->
-<!ENTITY debuggerUI.stepOverButton.tooltip "Step Over">
+<!ENTITY debuggerUI.stepOverButton.tooltip "Step Over (F7)">
same thing for dtd files. :/
l10n is hard.
Attachment #654584 -
Flags: review?(rcampbell)
| Reporter | ||
Comment 13•13 years ago
|
||
I'll fix these in bug 785889, since we're moving them around anyway.
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → DUPLICATE
Updated•7 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•