MDL-75985 behat: Return newline character for \n

Somehow part of this commit was lost during the push and/or squash.
This commit is contained in:
Andrew Nicols
2022-10-19 20:26:14 +08:00
parent febd5d944c
commit 0ba4fa53c1
+2 -2
View File
@@ -1780,8 +1780,8 @@ EOF;
// Without this, keys will behave differently depending on the browser.
$keylist = array_map(function($key): string {
switch ($key) {
case '\n':
behat_keys::ENTER;
case "\n":
return behat_keys::ENTER;
default:
return $key;
}