Make TAB behave as [aright]

1 view
Skip to first unread message

Casey West

unread,
May 29, 2007, 11:44:45 AM5/29/07
to socia...@googlegroups.com
Currently when the TAB key is pressed nothing much happens in
SocialCalc.

The following patch is rudementary support for *a* behavior, with a
more proper behavior coming soon.

The ideal case is that TAB selects the cell to the right of the
presently selected cell. In the case where the presently selected
cell is the last cell in the sheet, TAB will select the first cell
(column A) of the row following the presently selected row. For
example, if the currently selected cell is E5, and column E is the
last column in the sheet, pressing TAB will select cell F1.

This will happen in a little while.

--
Casey West

Index: WKCjs.txt
===================================================================
--- WKCjs.txt (revision 66)
+++ WKCjs.txt (working copy)
@@ -94,6 +94,7 @@
case 34: ch="[pgdn]"; break;
case 37: ch="[aleft]"; break;
case 38: ch="[aup]"; break;
+ case 9:
case 39: ch="[aright]"; break;
case 40: ch="[adown]"; break;
case 13: ch="[enter]"; break;
@@ -135,6 +136,7 @@
case 34: ch="[pgdn]"; break;
case 37: ch="[aleft]"; break;
case 38: ch="[aup]"; break;
+ case 9:
case 39: ch="[aright]"; break;
case 40: ch="[adown]"; break;
case 13: ch="[enter]"; break;

Reply all
Reply to author
Forward
0 new messages