Skip to content

Commit 329696d

Browse files
Merge pull request #1503 from gerrishons/patch-3
Create key_binding.py
2 parents 1ee569b + 0320578 commit 329696d

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-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("")

Key_Binding/requirement.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
quo>=2022.4

0 commit comments

Comments
 (0)