CtrlArrowsMoving not really needed as an option, now always active

This commit is contained in:
Marc Delisle
2010-10-04 08:07:48 -04:00
parent 04f1307a45
commit 38334e4f91
6 changed files with 1 additions and 23 deletions

View File

@@ -1868,11 +1868,6 @@ $cfg['TrustedProxies'] =
</dt>
<dd>Defines if the whole textarea of the query box will be selected on
click.</dd>
<dt id="CtrlArrowsMoving">
<span id="cfg_CtrlArrowsMoving">$cfg['CtrlArrowsMoving'] </span>boolean
</dt>
<dd>Enable Ctrl+Arrows (Option+Arrows in Safari) moving between fields when
editing.</dd>
<dt id="cfg_LimitChars">$cfg['LimitChars'] integer</dt>
<dd>Maximum number of characters shown in any non-numeric field on browse view.
@@ -4082,9 +4077,7 @@ INSERT INTO REL_towns VALUES ('M', 'Montr&eacute;al');
editing fields?</a></h4>
<p> You can use Ctrl+arrows (Option+Arrows in Safari) for moving on most pages
with many editing fields (table structure changes, row editing, etc.)
(must be enabled in configuration - see.
<a href="#CtrlArrowsMoving" class="configrule">$cfg['CtrlArrowsMoving']</a>).
with many editing fields (table structure changes, row editing, etc.).
You can also have a look at the directive
<a href="#DefaultPropDisplay" class="configrule">$cfg['DefaultPropDisplay']</a>
('vertical') and see if this eases up editing for you.</p>

View File

@@ -2198,13 +2198,6 @@ $cfg['CharTextareaCols'] = 40;
*/
$cfg['CharTextareaRows'] = 2;
/**
* Enable Ctrl+Arrows moving between fields when editing?
*
* @global boolean $cfg['CtrlArrowsMoving']
*/
$cfg['CtrlArrowsMoving'] = true;
/**
* Max field data length in browse mode for all non-numeric fields
*

View File

@@ -39,7 +39,6 @@ $strConfigCompressOnFly_name = __('Compress on the fly');
$strConfigConfigurationFile = __('Configuration file');
$strConfigConfirm_desc = __('Whether a warning (&quot;Are your really sure...&quot;) should be displayed when you\'re about to lose data');
$strConfigConfirm_name = __('Confirm DROP queries');
$strConfigCtrlArrowsMoving_name = __('Field navigation using Ctrl+Arrows');
$strConfigDBG_sql_name = __('Debug SQL');
$strConfigDefaultDisplay_name = __('Default display direction');
$strConfigDefaultPropDisplay_desc = __('[kbd]horizontal[/kbd], [kbd]vertical[/kbd] or a number that indicates maximum number for which vertical model is used');

View File

@@ -115,7 +115,6 @@ $forms['Main_frame']['Edit'] = array(
'InsertRows',
'ForeignKeyDropdownOrder',
'ForeignKeyMaxLimit',
'CtrlArrowsMoving',
'DefaultPropDisplay');
$forms['Main_frame']['Tabs'] = array(
'LightTabs',

View File

@@ -597,7 +597,6 @@ for ($i = 0; $i < $num_fields; $i++) {
}
} // end for
if ($cfg['CtrlArrowsMoving']) {
?>
<script src="./js/keyhandler.js" type="text/javascript"></script>
<script type="text/javascript">
@@ -606,9 +605,6 @@ var switch_movement = <?php echo $display_type == 'horizontal' ? '0' : '1'; ?>;
document.onkeydown = onKeyDownArrowsHandler;
// ]]>
</script>
<?php
}
?>
<form id="<?php echo ($action == 'tbl_create.php' ? 'create_table' : 'append_fields'); ?>_form" method="post" action="<?php echo $action; ?>">
<?php

View File

@@ -207,7 +207,6 @@ $chg_evt_handler = (PMA_USR_BROWSER_AGENT == 'IE' && PMA_USR_BROWSER_VER >= 5 &&
// Had to put the URI because when hosted on an https server,
// some browsers send wrongly this form to the http server.
if ($cfg['CtrlArrowsMoving']) {
?>
<!-- Set on key handler for moving using by Ctrl+arrows -->
<script src="./js/keyhandler.js" type="text/javascript"></script>
@@ -218,7 +217,6 @@ document.onkeydown = onKeyDownArrowsHandler;
//]]>
</script>
<?php
}
$_form_params = array(
'db' => $db,