diff --git a/src/pages/thread/Comment.js b/src/pages/thread/Comment.js index 9273583..351b89c 100644 --- a/src/pages/thread/Comment.js +++ b/src/pages/thread/Comment.js @@ -42,7 +42,10 @@ const Comment = (props) => { return (
- setCollapsed(!collapsed)} className='comment-collapse'>[{collapsed ? '+' : '\u2212'}] + setCollapsed(!collapsed)} + onKeyDown={e => e.key == "Enter" && setCollapsed(!collapsed)} + tabIndex= {0} + className='comment-collapse'>[{collapsed ? '+' : '\u2212'}] { reddit reveddit {props.hasOwnProperty('edited_body') && - setShowEdited(!showEdited)} title={ - showEdited ? 'The most recent version is shown; click to show the earliest archived' : 'The earliest archived version is shown; click to show the most recent' - }>*edited} + setShowEdited(!showEdited)} + onKeyDown={e => e.key == "Enter" && setShowEdited(!showEdited)} + tabIndex= {0} + title= {showEdited ? 'The most recent version is shown; click to show the earliest archived' : 'The earliest archived version is shown; click to show the most recent'} + >*edited}
{props.replies.map(comment => (