Commit db3cfa87 authored by Almer S. Tigelaar's avatar Almer S. Tigelaar Committed by Almer S. Tigelaar

Support for end and ctrl+end.

2001-06-18  Almer S. Tigelaar  <almer@gnome.org>

	* src/gnumeric-sheet.c (gnumeric_sheet_key_mode_sheet):
	Support for end and ctrl+end.

	* src/workbook-control-gui.c: Add accelerator for
	formula/value toggling.

	* src/GNOME_Gnumeric.xml: Add missing accelerator for
	goto cell and new accelerator for formula/value toggling.
parent 75b349ba
2001-06-18 Almer S. Tigelaar <almer@gnome.org>
* src/gnumeric-sheet.c (gnumeric_sheet_key_mode_sheet):
Support for end and ctrl+end.
* src/workbook-control-gui.c: Add accelerator for
formula/value toggling.
* src/GNOME_Gnumeric.xml: Add missing accelerator for
goto cell and new accelerator for formula/value toggling.
2001-06-18 Karl Eichwalder <ke@suse.de>
* src/main.c (gnumeric_main): Add missing exclamation mark.
......
2001-06-18 Almer S. Tigelaar <almer@gnome.org>
* src/gnumeric-sheet.c (gnumeric_sheet_key_mode_sheet):
Support for end and ctrl+end.
* src/workbook-control-gui.c: Add accelerator for
formula/value toggling.
* src/GNOME_Gnumeric.xml: Add missing accelerator for
goto cell and new accelerator for formula/value toggling.
2001-06-18 Karl Eichwalder <ke@suse.de>
* src/main.c (gnumeric_main): Add missing exclamation mark.
......
2001-06-18 Almer S. Tigelaar <almer@gnome.org>
* src/gnumeric-sheet.c (gnumeric_sheet_key_mode_sheet):
Support for end and ctrl+end.
* src/workbook-control-gui.c: Add accelerator for
formula/value toggling.
* src/GNOME_Gnumeric.xml: Add missing accelerator for
goto cell and new accelerator for formula/value toggling.
2001-06-18 Karl Eichwalder <ke@suse.de>
* src/main.c (gnumeric_main): Add missing exclamation mark.
......
2001-06-18 Almer S. Tigelaar <almer@gnome.org>
* src/gnumeric-sheet.c (gnumeric_sheet_key_mode_sheet):
Support for end and ctrl+end.
* src/workbook-control-gui.c: Add accelerator for
formula/value toggling.
* src/GNOME_Gnumeric.xml: Add missing accelerator for
goto cell and new accelerator for formula/value toggling.
2001-06-18 Karl Eichwalder <ke@suse.de>
* src/main.c (gnumeric_main): Add missing exclamation mark.
......
2001-06-18 Almer S. Tigelaar <almer@gnome.org>
* src/gnumeric-sheet.c (gnumeric_sheet_key_mode_sheet):
Support for end and ctrl+end.
* src/workbook-control-gui.c: Add accelerator for
formula/value toggling.
* src/GNOME_Gnumeric.xml: Add missing accelerator for
goto cell and new accelerator for formula/value toggling.
2001-06-18 Karl Eichwalder <ke@suse.de>
* src/main.c (gnumeric_main): Add missing exclamation mark.
......
......@@ -97,7 +97,8 @@
<cmd name="SheetDisplayFormulas" type="toggle" state="0"
_label="Display _Formulas"
_tip="Display the value of a formula or the formula itself" />
_tip="Display the value of a formula or the formula itself"
accel="*Control*grave"/>
<cmd name="SheetHideZeros" type="toggle" state="0"
_label="Hide _Zeros"
......@@ -244,7 +245,8 @@
<menuitem name="EditGoto" verb=""
_label="_Goto cell..."
_tip="Jump to a specified cell"/>
_tip="Jump to a specified cell"
accel="*Control*g"/>
<menuitem name="EditRecalc" verb=""
_label="Recalculate"
......
......@@ -141,6 +141,14 @@ gnumeric_sheet_key_mode_sheet (GnumericSheet *gsheet, GdkEventKey *event)
(*movefn)(gsheet->scg, -SHEET_MAX_ROWS, FALSE, FALSE);
break;
case GDK_KP_End:
case GDK_End:
/* do the ctrl-end jump to IV65536 in 2 steps */
(*movefn)(gsheet->scg, SHEET_MAX_COLS, FALSE, TRUE);
if ((event->state & GDK_CONTROL_MASK))
(*movefn)(gsheet->scg, SHEET_MAX_ROWS, FALSE, FALSE);
break;
case GDK_KP_Delete:
case GDK_Delete:
cmd_clear_selection (WORKBOOK_CONTROL (wbcg), sheet, CLEAR_VALUES);
......
......@@ -141,6 +141,14 @@ gnumeric_sheet_key_mode_sheet (GnumericSheet *gsheet, GdkEventKey *event)
(*movefn)(gsheet->scg, -SHEET_MAX_ROWS, FALSE, FALSE);
break;
case GDK_KP_End:
case GDK_End:
/* do the ctrl-end jump to IV65536 in 2 steps */
(*movefn)(gsheet->scg, SHEET_MAX_COLS, FALSE, TRUE);
if ((event->state & GDK_CONTROL_MASK))
(*movefn)(gsheet->scg, SHEET_MAX_ROWS, FALSE, FALSE);
break;
case GDK_KP_Delete:
case GDK_Delete:
cmd_clear_selection (WORKBOOK_CONTROL (wbcg), sheet, CLEAR_VALUES);
......
......@@ -2363,11 +2363,13 @@ static GnomeUIInfo workbook_menu_format_sheet [] = {
GNOMEUIINFO_ITEM_NONE (N_("Re-_Order Sheets..."),
N_("Change the order the sheets are displayed"),
cb_sheet_order),
/* Default <Ctrl-`> (control backquote) to insert toggle formula/value display */
{ GNOME_APP_UI_TOGGLEITEM,
N_("Display _Formulas"),
N_("Display the value of a formula or the formula itself"),
cb_sheet_pref_display_formulas, NULL, NULL,
GNOME_APP_PIXMAP_NONE, NULL, 0, (GdkModifierType) 0, NULL
GNOME_APP_PIXMAP_NONE, NULL, '`', GDK_CONTROL_MASK, NULL
},
{ GNOME_APP_UI_TOGGLEITEM,
N_("Hide _Zeros"),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment