Skip to content

Commit

Permalink
Merge pull request #30 from jhshi/fix_submit_in_main
Browse files Browse the repository at this point in the history
disable s in main view
  • Loading branch information
chishui authored Sep 14, 2017
2 parents 88a3c80 + 0f1cf1e commit 4a11f23
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion leetcode/terminal.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@ def keystroke(self, key):
self.goto_view(self.make_quit_confirmation())

elif key is 's':
self.goto_view(self.make_submit_confirmation())
if not self.is_home:
self.goto_view(self.make_submit_confirmation())

elif not self.is_home and (key is 'left' or key is 'h'):
self.go_back()
Expand Down

0 comments on commit 4a11f23

Please sign in to comment.