Results 1 to 14 of 14
  1.    #1  
    I'm lying in bed, reading a random and long wiki article. Its nice to scroll down without too much effort on my part. Could we program the space bar to scroll, just like our desktop counterpart?
  2. #2  
    I don't think you could, but you can scroll by using the back and forward gesture while you're on landscape mode
  3. drnull's Avatar
    Posts
    570 Posts
    Global Posts
    571 Global Posts
    #3  
    I have a patch that does that, along with some other keybindings in the browser.
    Backspace=top of page
    Enter=bottom of page
    Shift = page up
    Space = page down
    Period = scroll down a line (50 pixels technically).

    I just haven't taken the time to post it anywhere.

    It's very simple, btw. Just one block of changes. If you have access to the shell, i'll post this up for you later today.
  4. aric's Avatar
    Posts
    104 Posts
    Global Posts
    108 Global Posts
    #4  
    that would be great!. i'm also interested in this and think its a excellent alternative to continually swiping up and down.
  5. Webby_s's Avatar
    Posts
    279 Posts
    Global Posts
    284 Global Posts
    #5  
    Ya post it... I think I would use that!
    Still happily rooting my launch 6/6/09 Pre!
    (and my wife's)
  6. Daemon's Avatar
    Posts
    796 Posts
    Global Posts
    809 Global Posts
    #6  
    Definitely post it up.
    I poked around in /usr/palm/applications/com.palm.app.browser/app/controllers
    looking at references to keyCode and figure you could intercept
    em before it activates the URL bar. I also noticed there's a keyboard
    shortcuts class in app/models that doesn't seem to be used by anything.

    ian
  7. aric's Avatar
    Posts
    104 Posts
    Global Posts
    108 Global Posts
    #7  
    just checking back to see if there was anything new. nope. not yet.
  8. drnull's Avatar
    Posts
    570 Posts
    Global Posts
    571 Global Posts
    #8  
    Crap, sorry guys, drPodder development takes all the spare brain cells I have.

    I typically do these through quilt and post the patch to webos-internals.org, but I just don't feel like taking the time to do that right now. Maybe someday.

    Add the following code to /usr/palm/applications/com.palm.app.browser/app/controllers/global_code.jsjsjs
    around line 3170

    You'll see the following:
    Code:
                    if (this._addressBar.isAGotoAddressBarEvent(event.originalEvent)) {
                            this._gotoUrlBar();
                    }
    You want to change that to this:
    Code:
                    if (this._addressBar.isAGotoAddressBarEvent(event.originalEvent)) {
                            this._gotoUrlBar();
                   } else {
                           var key = event.originalEvent.keyCode;
                           var scroller = this.controller.getSceneScroller();
                           var pageHeight = scroller.mojo.scrollerSize().height;
                           if (pageHeight > 50) pageHeight = pageHeight - 50;
                           if (key == 32) {
                                   // alternate method for scrolling, gives visual feedback, but slower
                                   //var currentTop = scroller.mojo.getScrollPosition().top;
                                   //currentTop += scroller.mojo.scrollerSize().height - 50;
                                   //scroller.mojo.scrollTo(undefined, currentTop, true);
                                   scroller.mojo.adjustBy(0, -1*pageHeight);
                                   this._addressBar.hide();
                           } else if (key == 0) {
                                   scroller.mojo.adjustBy(0, pageHeight);
                           } else if (key == 190) {
                                   scroller.mojo.adjustBy(0, -25);
                                   this._addressBar.hide();
                           } else if (key == 8) {
                                   scroller.mojo.revealTop(0);
                           } else if (key == 13) {
                                   scroller.mojo.revealBottom(0);
                                   this._addressBar.hide();
                           } else {
                                   Mojo.Log.error("Ignoring keyCode", key);
                           }
                    }
  9. #9  
    Works Great!
  10. #10  
    Quote Originally Posted by drnull View Post
    Crap, sorry guys, drPodder development takes all the spare brain cells I have.

    I typically do these through quilt and post the patch to webos-internals.org, but I just don't feel like taking the time to do that right now. Maybe someday.

    Add the following code to /usr/palm/applications/com.palm.app.browser/app/controllers/global_code.jsjsjs
    around line 3170

    You'll see the following:
    Code:
                    if (this._addressBar.isAGotoAddressBarEvent(event.originalEvent)) {
                            this._gotoUrlBar();
                    }
    You want to change that to this:
    Code:
                    if (this._addressBar.isAGotoAddressBarEvent(event.originalEvent)) {
                            this._gotoUrlBar();
                   } else {
                           var key = event.originalEvent.keyCode;
                           var scroller = this.controller.getSceneScroller();
                           var pageHeight = scroller.mojo.scrollerSize().height;
                           if (pageHeight > 50) pageHeight = pageHeight - 50;
                           if (key == 32) {
                                   // alternate method for scrolling, gives visual feedback, but slower
                                   //var currentTop = scroller.mojo.getScrollPosition().top;
                                   //currentTop += scroller.mojo.scrollerSize().height - 50;
                                   //scroller.mojo.scrollTo(undefined, currentTop, true);
                                   scroller.mojo.adjustBy(0, -1*pageHeight);
                                   this._addressBar.hide();
                           } else if (key == 0) {
                                   scroller.mojo.adjustBy(0, pageHeight);
                           } else if (key == 190) {
                                   scroller.mojo.adjustBy(0, -25);
                                   this._addressBar.hide();
                           } else if (key == 8) {
                                   scroller.mojo.revealTop(0);
                           } else if (key == 13) {
                                   scroller.mojo.revealBottom(0);
                                   this._addressBar.hide();
                           } else {
                                   Mojo.Log.error("Ignoring keyCode", key);
                           }
                    }
    just wanted to know if it would be fine by u if i can add this to the patch i have created for the browser, just ways to improve it! and ill credit u as well. please let me know so i can start on it right away.

    Donate Via Paypal to Email Adress: silent2205@gmail.com
    Email: fritos1406@aim.com
    Twitter: @fritos1406
  11. drnull's Avatar
    Posts
    570 Posts
    Global Posts
    571 Global Posts
    #11  
    Quote Originally Posted by fritos1406 View Post
    just wanted to know if it would be fine by u if i can add this to the patch i have created for the browser, just ways to improve it! and ill credit u as well. please let me know so i can start on it right away.
    No problem at all, in fact, I would appreciate it! Thanks!
  12. #12  
    no thank u for making this ! im starting on it right now ill let u kow how it comes out okay
    EDIT: worked perfectly now updating my patch
    Last edited by fritos1406; 08/24/2009 at 07:46 PM.

    Donate Via Paypal to Email Adress: silent2205@gmail.com
    Email: fritos1406@aim.com
    Twitter: @fritos1406
  13. #13  
    Quote Originally Posted by fritos1406 View Post
    no thank u for making this ! im starting on it right now ill let u kow how it comes out okay
    EDIT: worked perfectly now updating my patch
    Post as soon as you get it done please would much rather have this as a patch!
  14. #14  
    okay i got the patch done but the website that i load it too seems to be mest up

    EDIT: the browser app has been updated to allow for these functionalities and has now been uploaded on git. just quilt push the enable browser downloads patch

    click the site in my signature below to see changes and updates on the browser for this patch
    Last edited by fritos1406; 08/25/2009 at 02:14 AM.

    Donate Via Paypal to Email Adress: silent2205@gmail.com
    Email: fritos1406@aim.com
    Twitter: @fritos1406

Posting Permissions