diff --git a/modules/mythtv/set_keys.php b/modules/mythtv/set_keys.php
index c3da592..4e181ea 100644
a
|
b
|
|
53 | 53 | ); |
54 | 54 | } |
55 | 55 | } |
| 56 | foreach ($_POST['multikey'] as $context => $data) { |
| 57 | foreach ($data as $action => $key_list) { |
| 58 | $db->query('UPDATE keybindings |
| 59 | SET multikey=? |
| 60 | WHERE context=? AND action=? AND hostname=?', |
| 61 | $key_list, |
| 62 | $context, |
| 63 | $action, |
| 64 | $_POST['host'] |
| 65 | ); |
| 66 | } |
| 67 | } |
56 | 68 | // Make sure the session host gets updated to the posted one. |
57 | 69 | $_SESSION['settings']['host'] = $_POST['host']; |
58 | 70 | } |
diff --git a/modules/mythtv/tmpl/default/set_keys.php b/modules/mythtv/tmpl/default/set_keys.php
index 1b7ab7a..74a365d 100644
a
|
b
|
|
40 | 40 | |
41 | 41 | <table border="0" cellpadding="4" cellspacing="2" class="list small" align="center"> |
42 | 42 | <tr class="menu large" align="center"> |
43 | | <td colspan="4"><?php echo t('Keybindings Editor') ?></td> |
| 43 | <td colspan="5"><?php echo t('Keybindings Editor') ?></td> |
44 | 44 | </tr><tr class="menu" align="center"> |
45 | 45 | <td width="15%"><?php echo t('Context') ?></td> |
46 | 46 | <td width="25%"><?php echo t('Action') ?></td> |
47 | 47 | <td width="40%"><?php echo t('Description') ?></td> |
48 | | <td width="20%"><?php echo t('Key bindings') ?></td> |
| 48 | <td width="10%"><?php echo t('Key bindings') ?></td> |
| 49 | <td width="10%"><?php echo t('Multikey binding') ?></td> |
49 | 50 | </tr><?php |
50 | 51 | foreach ($Keys as $key) { |
51 | 52 | ?><tr class="settings" align="center"> |
… |
… |
|
55 | 56 | <td><input type="text" size="25" |
56 | 57 | name="key[<?php echo html_entities($key['context']), '][', html_entities($key['action']) ?>]" |
57 | 58 | value="<?php echo html_entities($key['keylist']) ?>"></td> |
| 59 | <td><input type="text" size="25" |
| 60 | name="multikey[<?php echo html_entities($key['context']), '][', html_entities($key['action']) ?>]" |
| 61 | value="<?php echo html_entities($key['multikey']) ?>"></td> |
58 | 62 | </tr> |
59 | 63 | <?php |
60 | 64 | } |