Skip to content

Commit cf31daf

Browse files
committed
fix: change key binding from 'ctrl+m' to 'space' for deleting .venv close #5
1 parent 93abe6e commit cf31daf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

killpy/__main__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ class TableApp(App):
9393
BINDINGS = [
9494
Binding(key="ctrl+q", action="quit", description="Quit the app"),
9595
Binding(
96-
key="ctrl+m",
97-
action="enter",
96+
key="space",
97+
action="Delete",
9898
description="Delete the .venv selected",
9999
show=True,
100100
),
@@ -143,7 +143,7 @@ def on_mount(self) -> None:
143143
self.query_one(Label).update(f"Found {len(venvs)} .venv directories")
144144

145145
def on_key(self, event):
146-
if event.key == "enter":
146+
if event.key == "space":
147147
table = self.query_one(DataTable)
148148
cursor_cell = table.cursor_coordinate
149149
if cursor_cell:

0 commit comments

Comments
 (0)