Closed
Bug 568652
Opened 15 years ago
Closed 15 years ago
jsTerm: history key bindings
Categories
(DevTools :: General, defect, P2)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: ddahl, Assigned: julian.viereck)
References
Details
Attachments
(1 file, 2 obsolete files)
5.43 KB,
patch
|
Details | Diff | Splinter Review |
make sure the up/down arrow key bindings for the jsterm are working right. This is implemented but buggy in the patch on bug 534398
Assignee | ||
Comment 3•15 years ago
|
||
Attachment #457544 -
Flags: review?(dietrich)
Comment 4•15 years ago
|
||
Comment on attachment 457544 [details] [diff] [review]
Final Patch
> // up arrow: history previous
> if (self.caretInFirstLine()){
> self.historyPeruse(true);
>+ var bool = aEvent.cancelable;
>+ if (bool) {
>+ let inputEnd = self.inputNode.value.length;
>+ self.inputNode.setSelectionRange(inputEnd, inputEnd);
>+ aEvent.preventDefault();
>+ }
> }
here and below, can you remove the one-time-used |bool| locals, and do if (aEvent.cancelable) instead?
r=me otherwise.
Attachment #457544 -
Flags: review?(dietrich) → review+
Assignee | ||
Comment 5•15 years ago
|
||
Revision of 457544 based on :dietrich's comments.
Note: this patch depends on the patch from bug 579073.
Attachment #457543 -
Attachment is obsolete: true
Attachment #457544 -
Attachment is obsolete: true
Assignee | ||
Updated•15 years ago
|
![]() |
||
Comment 6•15 years ago
|
||
Comment on attachment 457665 [details] [diff] [review]
[checked-in] Final Patch v2
changeset: 47816:ac4bef453b82
user: Julian Viereck <jviereck@mozilla.com>
date: Fri Jul 16 12:00:38 2010 -0300
summary: bug 568652 - jsTerm history keybindings, r=dietrich
Attachment #457665 -
Attachment description: Final Patch v2 → [checked-in] Final Patch v2
![]() |
||
Updated•15 years ago
|
Whiteboard: checkin-needed
![]() |
||
Updated•15 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Updated•7 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•