Skip to content

Commit 2f4d01f

Browse files
committed
Add hotkey alias method
1 parent 3825635 commit 2f4d01f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Menu/Items/MenuItem.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,11 @@ public function accelerator(string $accelerator): self
8888
return $this;
8989
}
9090

91+
public function hotkey(string $hotkey): self
92+
{
93+
return $this->accelerator($hotkey);
94+
}
95+
9196
public function checked($checked = true): self
9297
{
9398
$this->isChecked = $checked;

0 commit comments

Comments
 (0)