I think the up-down arrow (cursor) keys should work in the browser (so that you can use the arrow keys to scroll through methods and classes).
Maybe I haven't been paying attention, but it seems this is not the case, at least not in 1.31 (which is what I'm still using).
Ideally the left-right arrow keys should also work (more difficult - has anyone does this ?). I just added some code to deal with the up-down arrow keys which does the job for me (I'm not a MVC guru, but it seems to work).
David Stes wrote:
I think the up-down arrow (cursor) keys should work in the browser (so that you can use the arrow keys to scroll through methods and classes).
Maybe I haven't been paying attention, but it seems this is not the case, at least not in 1.31 (which is what I'm still using).
Ideally the left-right arrow keys should also work (more difficult - has anyone does this ?). I just added some code to deal with the up-down arrow keys which does the job for me (I'm not a MVC guru, but it seems to work).
In version 2.0, ALL lists respond to up- and down-arrow (as well as Home, End, PageUp and PageDown). So all of the browsers already have this behavior.
I'm very glad that lists now respond to the keyboard. Not only is it handy for interacting with the list, it also eliminates a somewhat noxious "feature". Before, if one typed something at a list (expecting it to respond) those keystrokes got effectively saved, just waiting to spew forth on the first unsuspecting text view that the mouse wandered over.
Now the next thing I'd like to see handle keyboard inputs would be PopUpMenus. I find it bothersome to have to reach for the mouse to confirm something, when I'm in the middle of using the keyboard. I'm a firm believer that you should be able to pretty much be able to operate everything from either the mouse OR the keyboard, and use which ever is more convenient at the moment. If I ever find some time :-( I'll have to look into changing this.
BTW David, I'm not sure what the left- and right-arrow keys would do in a browser. What did you envision them doing? Ah! Perhaps move the focus (mouse?) between side by side lists?
------------------------------------------- Bill Dargel wdargel@shoshana.com Shoshana Technologies 100 West Joy Road, Ann Arbor, MI 48105 USA
On Fri, 19 Jun 1998, William O. Dargel wrote:
BTW David, I'm not sure what the left- and right-arrow keys would do in a browser. What did you envision them doing? Ah! Perhaps move the focus (mouse?) between side by side lists?
Yes. I mean, no, not move the mouse, but move the focus, yes. So you can traverse the browser with the cursor keys only ...
I also implemented 'vi' keybindings for the list, 'k' moves upwards in the list and 'j' downwards. So 'h' could move the focus to the column to the left.
In fact, I'm going to wait to upgrade to 2.0, and continue to work with 1.31 a bit, since if the Controllers already deal with keyboard input in 2.0, then that would spoil the fun for me ...
I just compiled 2.0 (on FreeBSD) and there still seems to be a bug with the PlayWithMe-4 demo. That's the online Oopsla article and when I click on the right arrow 'go to next page' in the control panel (to the right of the '+' button), Squeak just hangs ... (I have to kill it). This bug was also in my 1.31 and 1.19 version, I believe. If somebody is interested in this, and can give me a clue on how to debug this, please contact me.
David,
I just compiled 2.0 (on FreeBSD) and there still seems to be a bug with the PlayWithMe-4 demo. That's the online Oopsla article and when I click on the right arrow 'go to next page' in the control panel (to the right of the '+' button), Squeak just hangs ... (I have to kill it). This bug was also in my 1.31 and 1.19 version, I believe. If somebody is interested in this, and can give me a clue on how to debug this, please contact me.
You'll probably have to disable the sound output first. Choose "turn sound off" from the desktop help menu and it should work ok.
Andreas
On Fri, 19 Jun 1998, William O. Dargel wrote:
BTW David, I'm not sure what the left- and right-arrow keys would do in a browser. What did you envision them doing? Ah! Perhaps move the focus (mouse?) between side by side lists?
Yes. I mean, no, not move the mouse, but move the focus, yes. So you can traverse the browser with the cursor keys only ...
I also implemented 'vi' keybindings for the list, 'k' moves upwards in the list and 'j' downwards. So 'h' could move the focus to the column to the left.
In fact, I'm going to wait to upgrade to 2.0, and continue to work with 1.31 a bit, since if the Controllers already deal with keyboard input in 2.0, then that would spoil the fun for me ...
In 2.0, we changed to a completely new pluggable list implementation. So, have fun in 1.31, but be prepared to make a few changes when you port your code to 2.0. (I don't think the changes will be numerous or difficult.)
Also: Tim R. is right about keystrokes being sent to whichever pane the mouse is currently over. This makes switching panes under keyboard control tricky and potentially confusing. It should be easier to implement under Morphic than under MVC.
-- John
On Fri 19 Jun, David Stes wrote:
I think the up-down arrow (cursor) keys should work in the browser (so that you can use the arrow keys to scroll through methods and classes).
In sq2.0 they work very nicely. Left-Right to move across views isn't there at the moment and it looks to me as if the way keystrokes are handled in lists might not be able to do it. I _think_ you'd need to fake out the mouse position in some manner, since the keystroke dispatching is done via the view with the mouse in it. I can't see any obvious way to change the focus - yet. Doubtless someone will comeup with a way soon.
tim
squeak-dev@lists.squeakfoundation.org