Bug 1268107 - Cannot use back in about:debugging after entering an invalid hash r=jdescottes

MozReview-Commit-ID: CsbzQXiR9RV
This commit is contained in:
Ricky Chien
2016-05-09 17:14:56 +08:00
parent d985998b6c
commit 6b85ccd567
8 changed files with 94 additions and 24 deletions

View File

@@ -14,7 +14,7 @@ module.exports = createClass({
this.props.selectPanel(this.props.id);
},
onKeyUp(event) {
onKeyDown(event) {
if ([" ", "Enter"].includes(event.key)) {
this.props.selectPanel(this.props.id);
}
@@ -31,7 +31,7 @@ module.exports = createClass({
"aria-controls": panelId,
className,
onClick: this.onClick,
onKeyUp: this.onKeyUp,
onKeyDown: this.onKeyDown,
tabIndex: "0",
role: "tab" },
dom.img({ className: "category-icon", src: icon, role: "presentation" }),