Revert "toggle hidden comment with arrow left or h"
This reverts commit 66bc9f5667.
This commit is contained in:
@@ -229,10 +229,6 @@ class SubmissionContent(BaseContent):
|
||||
else:
|
||||
raise ValueError('% type not recognized' % data['type'])
|
||||
|
||||
def is_hidden_comment(self, index):
|
||||
data = self.get(index)
|
||||
return data['type'] == 'HiddenComment'
|
||||
|
||||
|
||||
class SubredditContent(BaseContent):
|
||||
|
||||
|
||||
@@ -53,11 +53,7 @@ class SubmissionPage(BasePage):
|
||||
|
||||
@SubmissionController.register(curses.KEY_LEFT, 'h')
|
||||
def exit_submission(self):
|
||||
index = self.nav.absolute_index
|
||||
if self.content.is_hidden_comment(index):
|
||||
self.content.toggle(index)
|
||||
else:
|
||||
self.active = False
|
||||
self.active = False
|
||||
|
||||
@SubmissionController.register(curses.KEY_F5, 'r')
|
||||
def refresh_content(self):
|
||||
|
||||
Reference in New Issue
Block a user