Closed
Bug 815277
Opened 13 years ago
Closed 13 years ago
Source editor's 'Find' and 'Jump to line' commands should use the frontend UI
Categories
(DevTools :: Debugger, defect, P2)
DevTools
Debugger
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 20
People
(Reporter: vporof, Assigned: vporof)
References
Details
(Whiteboard: [fixed-in-fx-team])
Attachments
(1 file)
|
21.15 KB,
patch
|
past
:
review+
|
Details | Diff | Splinter Review |
No description provided.
| Assignee | ||
Comment 2•13 years ago
|
||
Accel+F, for example (or via the context menu) brings up a prompt with a textbox input. We already have this UI exposed in the frontend via the searchbox and the # operator, or simply Ctrl+Shift+F. It seems to me that having two input modes for the same functionality is redundant and confusing. I think that the 'Find' and 'Jump to line' commands should defer control to the searchbox in the debugger's frontend UI.
Comment 3•13 years ago
|
||
Good point.
You can do that with the current API: just replace the context menu item to point to a debugger command that focuses the search field. Similarly for the jump to line command. You can also replace the keyboard shortcuts.
Please let me know if there's any problem.
Whiteboard: [sourceeditor]
| Assignee | ||
Comment 4•13 years ago
|
||
(In reply to Mihai Sucan [:msucan] from comment #3)
Sounds pretty straightforward, thanks for the tips!
| Assignee | ||
Comment 5•13 years ago
|
||
Also localized a bunch of commands, which, for some ancient reason, weren't.
Attachment #685349 -
Flags: review?(past)
Comment 6•13 years ago
|
||
Comment on attachment 685349 [details] [diff] [review]
v1
Review of attachment 685349 [details] [diff] [review]:
-----------------------------------------------------------------
I like it!
::: browser/devtools/shared/LayoutHelpers.jsm
@@ +326,5 @@
> *
> * @param Node aElemKey
> * The key element to get the modifiers from.
> + * @param boolean aAllowCloverleaf
> + * Pass true to avoid the cloverleaf meta-key string.
s/true/false/
Attachment #685349 -
Flags: review?(past) → review+
Updated•13 years ago
|
Assignee: nobody → vporof
Status: NEW → ASSIGNED
Priority: -- → P2
Comment 7•13 years ago
|
||
(In reply to Panos Astithas [:past] from comment #6)
> Comment on attachment 685349 [details] [diff] [review]
> v1
>
> Review of attachment 685349 [details] [diff] [review]:
> -----------------------------------------------------------------
>
> I like it!
>
> ::: browser/devtools/shared/LayoutHelpers.jsm
> @@ +326,5 @@
> > *
> > * @param Node aElemKey
> > * The key element to get the modifiers from.
> > + * @param boolean aAllowCloverleaf
> > + * Pass true to avoid the cloverleaf meta-key string.
>
> s/true/false/
Or maybe you want to reword this a bit, because I still find it slightly confusing. How about: Pass true to use the cloverleaf symbol instead of a descriptive string.
| Assignee | ||
Comment 8•13 years ago
|
||
(In reply to Panos Astithas [:past] from comment #7)
> (In reply to Panos Astithas [:past] from comment #6)
>
> Or maybe you want to reword this a bit, because I still find it slightly
> confusing. How about: Pass true to use the cloverleaf symbol instead of a
> descriptive string.
Ok. I too, don't not hate booleans.
I'll just try this patch on Windows and Linux first, to make sure the keyboard shortcuts still work properly.
| Assignee | ||
Comment 9•13 years ago
|
||
Tested shortcuts and they work on Windows and Linux.
| Assignee | ||
Comment 10•13 years ago
|
||
Whiteboard: [fixed-in-fx-team]
| Assignee | ||
Comment 11•13 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 20
Updated•8 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•