Skip to content

Commit d756b72

Browse files
Create key_binding.py
1 parent 1ee569b commit d756b72

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Key_Binding/key_binding.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
from quo.keys import bind
2+
from quo.prompt import Prompt
3+
4+
session = Prompt()
5+
6+
@bind.add("ctrl-h")
7+
def _(event):
8+
print("Hello, World")
9+
10+
session.prompt("")

0 commit comments

Comments
 (0)