added keyboard shortcuts (#3536)

This commit is contained in:
Kevin Papst
2022-09-14 14:30:15 +02:00
committed by GitHub
parent 7eded6e126
commit 496a74f7a3
5 changed files with 21 additions and 18 deletions

View File

@@ -95,12 +95,12 @@ class PageActionsEventTest extends TestCase
$this->assertEquals(8, $sut->countActions());
$expected = [
'search' => ['modal' => '#modal_search', 'label' => null],
'search' => ['modal' => '#modal_search', 'label' => null, 'accesskey' => 'q'],
'divider0' => null,
'back' => ['url' => 'foo1', 'translation_domain' => 'actions'],
'visibility' => ['modal' => '#foo2'],
'help' => ['url' => 'foo4', 'target' => '_blank'],
'create' => ['url' => 'foo5', 'class' => 'modal-ajax-form'],
'help' => ['url' => 'foo4', 'target' => '_blank', 'accesskey' => 'h'],
'create' => ['url' => 'foo5', 'class' => 'modal-ajax-form', 'accesskey' => 'a'],
'download' => ['url' => 'foo7', 'class' => 'toolbar-action'],
'trash' => ['url' => 'foo3', 'class' => 'modal-ajax-form text-red'],
];