After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 699710 - keyboard shortcut to jump to current cell indicator
keyboard shortcut to jump to current cell indicator
Status: RESOLVED FIXED
Product: Gnumeric
Classification: Applications
Component: GUI
git master
Other Linux
: Normal enhancement
: ---
Assigned To: Jody Goldberg
Jody Goldberg
Depends on:
Blocks:
 
 
Reported: 2013-05-05 14:23 UTC by Adam Dingle
Modified: 2013-05-28 02:20 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
non-functional patch (3.02 KB, patch)
2013-05-28 00:17 UTC, Andreas J. Guelzow
none Details | Review
proposed patch (3.67 KB, patch)
2013-05-28 01:18 UTC, Andreas J. Guelzow
none Details | Review

Description Adam Dingle 2013-05-05 14:23:32 UTC
It would be lovely to have a keyboard shortcut that places the focus in the current cell indicator area.  (If there is one, it's not documented in the help.)
Comment 1 Andreas J. Guelzow 2013-05-06 02:04:58 UTC
You could use

Ctrl-G enter
Comment 2 Andreas J. Guelzow 2013-05-06 02:06:00 UTC
or more completely

Ctrl-G enter esc
Comment 3 Adam Dingle 2013-05-06 10:21:26 UTC
True, though that's a tad more typing, and won't let me select a range of cells such as A1:A100.
Comment 4 Andreas J. Guelzow 2013-05-06 13:23:17 UTC
Why doesn't it allow you to select a range such as A1:A100?
Comment 5 Adam Dingle 2013-05-06 15:01:23 UTC
In the current cell indicator area I can type "A1:A100" to select those cells.  In the Go To dialog, however, I can only type a single cell, not a range.  Perhaps you consider that a bug - if so, it deserves a separate bug ticket.  If it's not a bug, then I need to use the current cell indicator to enter a range, which is one more reason I'd like a shortcut that takes me there.
Comment 6 Andreas J. Guelzow 2013-05-06 16:53:27 UTC
In the go to dialog you can enter the top left cell plus the number of rows and columns. Can't you. It is usually easier to ask for 23 columns then to figure out column names.
Comment 7 Adam Dingle 2013-05-06 18:11:32 UTC
True, though to select A1:A50 via the keyboard using that dialog I must type:

Ctrl+G A1 Tab Tab Delete 50 Shift+Tab Enter

If I had a keyboard shortcut that jumped to the current cell indicator I could type:

<shortcut> A1:A50 Enter

That feels easier to me.  In any case, it's not hard to add a shortcut and it doesn't harm anyone who doesn't want to use it!  :)
Comment 8 Andreas J. Guelzow 2013-05-06 18:28:30 UTC
I think we are talking about different things. 

For me the current cell indicator is the emphasized border around the current cell. I though you would want to have the pane scroll to that position. I believe you are talking about something else.
Comment 9 Adam Dingle 2013-05-06 18:30:32 UTC
I'm referring to the entity with that name in the Gnumeric documentation:

http://projects.gnome.org/gnumeric/doc/data-entry.shtml
Comment 10 Andreas J. Guelzow 2013-05-28 00:17:56 UTC
Created attachment 245419 [details] [review]
non-functional patch

There attached patch should define shift-ctrl-g to focus on the cell indicator, but it doesn't. It seems that something is stealing the focus immediately after it is set. I have no idea what is wrong with this.
Comment 11 Andreas J. Guelzow 2013-05-28 01:05:38 UTC
The problem with this patch seems to be that we have "swapped_object_signal::post_activate", G_CALLBACK (cb_post_activate)
and in cb_post_activate:
static void
cb_post_activate (WBCGtk *wbcg)
{
	if (!wbcg_is_editing (wbcg))
		wbcg_focus_cur_scg (wbcg);
}

So after every command we apparently ensure that the focus is again on the sheet.
Comment 12 Andreas J. Guelzow 2013-05-28 01:18:14 UTC
Created attachment 245421 [details] [review]
proposed patch

This is a proposed patch. Essentially it creates an action tied to shift-ctrl-g to focus on the current cell indicator. I chose shift-ctrl-g since ctrl-g open the goto cell dialog.
Comment 13 Andreas J. Guelzow 2013-05-28 02:20:03 UTC
This problem has been fixed in the development version. The fix will be available in the next major software release. Thank you for your bug report.