Skip to content

Commit

Permalink
Perform peer de-select client side after applying operations
Browse files Browse the repository at this point in the history
  • Loading branch information
Qirky committed Feb 6, 2019
1 parent 6992ed4 commit fd5691f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/interface/peer.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ def remove(self, start, end):
return

def clear(self):
""" Removes the Tk text tag from the document """
self.text.tag_remove(self.tag, "1.0", Tk.END)
return

Expand Down
2 changes: 2 additions & 0 deletions src/interface/textbox.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,8 @@ def apply_operation(self, operation, peer=None, undo=False):

self.insert_peer_id(peer, operation.ops)

peer.de_select()

# -- new

self.refresh()
Expand Down

0 comments on commit fd5691f

Please sign in to comment.