Created
March 4, 2015 06:45
-
-
Save ookilo/e8b6d0258fcc134e84f8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/chrome/Echofon/content/compose.xml b/chrome/Echofon/content/compose.xml | |
| index b5bf054..9763240 100644 | |
| --- a/chrome/Echofon/content/compose.xml | |
| +++ b/chrome/Echofon/content/compose.xml | |
| @@ -122,13 +122,13 @@ | |
| else { | |
| if (this.textbox.value.length == 0) { | |
| if (event.keyCode == event.DOM_VK_UP || event.keyCode == event.DOM_VK_DOWN) { | |
| - scrollBy((event.keyCode == event.DOM_VK_UP) ? -1 : 1); | |
| + scrollByLine((event.keyCode == event.DOM_VK_UP) ? -1 : 1); | |
| } | |
| if (event.keyCode == event.DOM_VK_HOME || | |
| event.keyCode == event.DOM_VK_END || | |
| event.keyCode == event.DOM_VK_PAGE_UP || | |
| event.keyCode == event.DOM_VK_PAGE_DOWN) { | |
| - scrollTo(event); | |
| + scrollToPage(event); | |
| } | |
| } | |
| else { | |
| diff --git a/chrome/Echofon/content/window.js b/chrome/Echofon/content/window.js | |
| index 9eac8b3..49bedc3 100644 | |
| --- a/chrome/Echofon/content/window.js | |
| +++ b/chrome/Echofon/content/window.js | |
| @@ -489,13 +489,13 @@ function adIsVisible(flag) | |
| } | |
| } | |
| -function scrollBy(direction) | |
| +function scrollByLine(direction) | |
| { | |
| var box = contentBox.scrollbox; | |
| box.scrollByIndex(direction); | |
| } | |
| -function scrollTo(event) | |
| +function scrollToPage(event) | |
| { | |
| var box = contentBox.scrollbox; | |
| switch (event.keyCode) { | |
| diff --git a/chrome/Echofon/content/window.xul b/chrome/Echofon/content/window.xul | |
| index 8c70f86..8191213 100644 | |
| --- a/chrome/Echofon/content/window.xul | |
| +++ b/chrome/Echofon/content/window.xul | |
| @@ -29,8 +29,8 @@ | |
| <command id="cmd_focusToBrowser" oncommand="focusToBrowser()"/> | |
| <command id="cmd_nextTab" oncommand="nextTab(true)"/> | |
| <command id="cmd_prevTab" oncommand="nextTab(false)"/> | |
| - <command id="cmd_scrollUp" oncommand="scrollBy(-1)"/> | |
| - <command id="cmd_scrollDown" oncommand="scrollBy(1)"/> | |
| + <command id="cmd_scrollUp" oncommand="scrollByLine(-1)"/> | |
| + <command id="cmd_scrollDown" oncommand="scrollByLine(1)"/> | |
| <command id="cmd_goHome" oncommand="changeTab(0)"/> | |
| <command id="cmd_goMentions" oncommand="changeTab(1)"/> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment