mirror of
https://github.com/norohind/EDMC_SpanshRouter.git
synced 2025-04-21 19:47:36 +03:00
Add paste on right click
This commit is contained in:
parent
8438293170
commit
e1a13d364b
@ -27,10 +27,15 @@ class AutoCompleter(Entry, PlaceHolder):
|
||||
|
||||
self.bind("<Any-Key>", self.keypressed)
|
||||
self.bind('<Control-KeyRelease-a>', self.select_all)
|
||||
self.bind('<Button-3>', self.paste)
|
||||
self.lb.bind("<Double-Button-1>", self.selection)
|
||||
|
||||
self.update_me()
|
||||
|
||||
def paste(self, event):
|
||||
self.foc_in()
|
||||
self.insert(0, self.clipboard_get())
|
||||
|
||||
def keypressed(self, event):
|
||||
key=event.keysym
|
||||
if key == 'Down':
|
||||
|
Loading…
x
Reference in New Issue
Block a user