Skip to content

Commit

Permalink
Add hotkey alias method
Browse files Browse the repository at this point in the history
  • Loading branch information
simonhamp committed Dec 1, 2024
1 parent 3825635 commit 2f4d01f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Menu/Items/MenuItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,11 @@ public function accelerator(string $accelerator): self
return $this;
}

public function hotkey(string $hotkey): self
{
return $this->accelerator($hotkey);
}

public function checked($checked = true): self
{
$this->isChecked = $checked;
Expand Down

0 comments on commit 2f4d01f

Please sign in to comment.