Possibility to disable Ctrl+Arrows moving.

This commit is contained in:
Michal Čihař 2003-05-26 11:06:10 +00:00
parent b14127f87a
commit 0c379d3c7b
7 changed files with 38 additions and 8 deletions

View File

@ -5,6 +5,11 @@ phpMyAdmin - Changelog
$Id$
$Source$
2003-05-26 Michal Cihar <nijel@users.sourceforge.net>
* Documentation, config.inc.php3, tbl_change.php3,
tbl_properties.inc.php3, libraries/config_import.lib.php3: Possibility
to disable Ctrl+Arrows moving.
2003-05-25 Garvin Hicking <me@supergarv.de>
* left.php3: Fix #742632 finally: Refresh to main.php3
if an empty DB has been selected.

View File

@ -1471,6 +1471,14 @@ $cfg['PmaAbsoluteUri'] = (!empty($_SERVER['HTTPS']) ? 'https' : 'http') . '://'
<br /><br />
</dd>
<dt>
<b>$cfg['CtrlArrowsMoving'] </b>boolean<br />
</dt>
<dd>
Enable Ctrl+Arrows moving between fields when editing?
<br /><br />
</dd>
<dt><b>$cfg['LimitChars'] </b>integer</dt>
<dd>
Maximal number of Chars showed in a <tt>TEXT</tt> OR a <tt>BLOB</tt>
@ -3085,9 +3093,10 @@ To create a new, empty mimetype please see libraries/transformations/template_ge
</h4>
<p>
You can use Ctrl+arrows for moving on most pages with plenty editing
fields (table structure changes, row editing, etc.). You can also have
a look at the directive $cfg['DefaultPropDisplay'] ('vertical') and see
if this eases up editing for you.
fields (table structure changes, row editing, etc.) (must be anabled in
configuration - see. $cfg['CtrlArrowsMoving']). You can also have a look
at the directive $cfg['DefaultPropDisplay'] ('vertical') and see if this
eases up editing for you.
<br />
</p>

View File

@ -14,8 +14,8 @@
+ Version history: ChangeLog
+ General notes: README
+ License: LICENSE
* Documentation version: $Id: Documentation.html,v 1.445 2003/05/19
17:11:33 lem9 Exp $
* Documentation version: $Id: Documentation.html,v 1.447 2003/05/24
12:04:00 lem9 Exp $
Requirements
@ -721,6 +721,10 @@ $cfg['PmaAbsoluteUri'] = (!empty($_SERVER['HTTPS']) ? 'https' : 'http') . '://'
name at the beginning or end of a table name, or multiple times
after another without any other characters in between.
$cfg['LeftFrameTableLevel'] string
Defines how many sublevels should be displayed when splitting
up tables by the above Separator.
$cfg['ShowTooltip'] boolean
Defines whether to display table comment as tool-tip in left
frame or not.
@ -969,6 +973,9 @@ $cfg['PmaAbsoluteUri'] = (!empty($_SERVER['HTTPS']) ? 'https' : 'http') . '://'
Defines if the whole textarea of the query box will be selected
on click.
$cfg['CtrlArrowsMoving'] boolean
Enable Ctrl+Arrows moving between fields when editing?
$cfg['LimitChars'] integer
Maximal number of Chars showed in a TEXT OR a BLOB field on
browse view. Can be turned off by a toggle button on the browse
@ -2129,9 +2136,10 @@ FAQ - Frequently Asked Questions
[6.16] How can I simply move in page with plenty editing fields?
You can use Ctrl+arrows for moving on most pages with plenty editing
fields (table structure changes, row editing, etc.). You can also have
a look at the directive $cfg['DefaultPropDisplay'] ('vertical') and
see if this eases up editing for you.
fields (table structure changes, row editing, etc.) (must be anabled
in configuration - see. $cfg['CtrlArrowsMoving']). You can also have a
look at the directive $cfg['DefaultPropDisplay'] ('vertical') and see
if this eases up editing for you.
[6.17] Transformations: I can't enter my own mimetype! WTF is this feature
then useful for?

View File

@ -391,6 +391,7 @@ $cfg['LongtextDoubleTextarea'] = TRUE; // double size of textarea size for
$cfg['TextareaAutoSelect'] = TRUE; // autoselect when clicking in the textarea of the querybox
$cfg['CharTextareaCols'] = 40; // textarea size (columns) for CHAR/VARCHAR
$cfg['CharTextareaRows'] = 2; // textarea size (rows) for CHAR/VARCHAR
$cfg['CtrlArrowsMoving'] = TRUE; // Enable Ctrl+Arrows moving between fields when editing?
$cfg['LimitChars'] = 50; // For text and blobs, max field data length in browse mode
$cfg['ModifyDeleteAtLeft'] = TRUE; // show edit/delete links on left side of browse
// (or at the top with vertical browse)

View File

@ -1066,6 +1066,9 @@ if (!defined('PMA_CONFIG_IMPORT_LIB_INCLUDED')) {
if (!isset($cfg['GD2Available'])) {
$cfg['GD2Available'] = 'auto';
}
if (!isset($cfg['CtrlArrowsMoving'])) {
$cfg['CtrlArrowsMoving'] = TRUE;
}
} // $__PMA_CONFIG_IMPORT_LIB__

View File

@ -133,12 +133,14 @@ $chg_evt_handler = (PMA_USR_BROWSER_AGENT == 'IE' && PMA_USR_BROWSER_VER >= 5)
// some browsers send wrongly this form to the http server.
?>
<?php if ($cfg['CtrlArrowsMoving']) { ?>
<!-- Set on key handler for moving using by Ctrl+arrows -->
<script type="text/javascript" language="javascript">
<!--
document.onkeydown = onKeyDownArrowsHandler;
// -->
</script>
<?php } ?>
<!-- Change table properties form -->
<form method="post" action="tbl_replace.php3" name="insertForm" <?php if ($is_upload) echo ' enctype="multipart/form-data"'; ?>>

View File

@ -4,12 +4,14 @@
?>
<?php if ($cfg['CtrlArrowsMoving']) { ?>
<!-- Set on key handler for moving using by Ctrl+arrows -->
<script type="text/javascript" language="javascript">
<!--
document.onkeydown = onKeyDownArrowsHandler;
// -->
</script>
<?php } ?>
<form method="post" action="<?php echo $action; ?>">
<?php