Closed Bug 568652 Opened 15 years ago Closed 15 years ago

jsTerm: history key bindings

Categories

(DevTools :: General, defect, P2)

x86
All
defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: ddahl, Assigned: julian.viereck)

References

Details

Attachments

(1 file, 2 obsolete files)

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
most of this is working, needs tests.
Priority: -- → P2
Necessary patch for later unit tests.
Assignee: ddahl → jviereck
Attached patch Final Patch (obsolete) — Splinter Review
Attachment #457544 - Flags: review?(dietrich)
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+
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
Status: NEW → ASSIGNED
Depends on: 579073
Whiteboard: checkin-needed
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
Whiteboard: checkin-needed
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: