From: Krinkle Date: Tue, 23 Nov 2010 00:04:02 +0000 (+0000) Subject: Pressing enter in an input field doesn't trigger display:none elements in WebKit... X-Git-Tag: 1.31.0-rc.0~33773 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=1367a246fb0822e63a92d7e9f6e272ba503db998;p=lhc%2Fweb%2Fwiklou.git Pressing enter in an input field doesn't trigger display:none elements in WebKit-browsers. Either put Back-button after Continue (visually not a good choise)... or keep the current double-button-first-hidden approach but in a different way that doesn't use display:none. Doing the latter for now. --- diff --git a/includes/installer/WebInstallerPage.php b/includes/installer/WebInstallerPage.php index 0c38581b21..a7e89f983b 100644 --- a/includes/installer/WebInstallerPage.php +++ b/includes/installer/WebInstallerPage.php @@ -60,7 +60,7 @@ abstract class WebInstallerPage { if ( $continue ) { // Fake submit button for enter keypress $s .= Xml::submitButton( wfMsg( "config-$continue" ), - array( 'name' => "enter-$continue", 'style' => 'display:none' ) ) . "\n"; + array( 'name' => "enter-$continue", 'style' => 'visibility:hidden;overflow:hidden;width:1px;margin:0' ) ) . "\n"; } if ( $id !== 0 ) {