Skip to content

Commit 96534ed

Browse files
committed
2 parents fdf7116 + f3b5a78 commit 96534ed

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/Prompt/Dashboard.php

+1
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ protected function showDashboard(): void
108108
->on('c', fn() => $this->currentCommand()->clear())
109109
->on('p', fn() => $this->currentCommand()->pause())
110110
->on('f', fn() => $this->currentCommand()->follow())
111+
->on('r', fn() => $this->currentCommand()->restart())
111112

112113
// Scrolling
113114
->onDown(fn() => $this->currentCommand()->scrollDown())

src/Prompt/Renderer.php

+2
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,8 @@ protected function renderHotkeys(): void
234234

235235
$this->hotkey('q', 'Quit');
236236

237+
$this->hotkey('r', 'Restart');
238+
237239
$this->line(
238240
$this->centerHorizontally($this->hotkeys(), $this->width)->first()
239241
);

0 commit comments

Comments
 (0)