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:
|
else:
|
||||||
raise ValueError('% type not recognized' % data['type'])
|
raise ValueError('% type not recognized' % data['type'])
|
||||||
|
|
||||||
def is_hidden_comment(self, index):
|
|
||||||
data = self.get(index)
|
|
||||||
return data['type'] == 'HiddenComment'
|
|
||||||
|
|
||||||
|
|
||||||
class SubredditContent(BaseContent):
|
class SubredditContent(BaseContent):
|
||||||
|
|
||||||
|
|||||||
@@ -53,10 +53,6 @@ class SubmissionPage(BasePage):
|
|||||||
|
|
||||||
@SubmissionController.register(curses.KEY_LEFT, 'h')
|
@SubmissionController.register(curses.KEY_LEFT, 'h')
|
||||||
def exit_submission(self):
|
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')
|
@SubmissionController.register(curses.KEY_F5, 'r')
|
||||||
|
|||||||
Reference in New Issue
Block a user