Skip to content
This repository was archived by the owner on Nov 26, 2020. It is now read-only.

Commit 056ae19

Browse files
committed
menu onWrongKey function added
1 parent 7b272e5 commit 056ae19

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/Voice/Tag/Menu.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,12 @@ public function onKeyPress($key, $verb, $attribs = [])
3939
$this->setAttribute($key, array($new_tag), false);
4040
return $new_tag;
4141
}
42+
public function onWrongKey($verb, $attribs = [])
43+
{
44+
$new_tag = $this->append($verb, $attribs);
45+
$this->setAttribute('wrongkey', array($new_tag), false);
46+
return $new_tag;
47+
}
4248

4349
public function onTimeout($verb, $attribs = [], $isSequential = false)
4450
{

0 commit comments

Comments
 (0)