Internet:Microb Hardware Key bindings

From Internet Tablet Talk

Using the d-pad to scroll pages in Microb webbrowser

By default in Microb the dpad (the four arrow buttons with the square button in the middle) is configured to scroll line by line, and the middle button acts as a return. By making the configuration changes below you can use the 'up' and 'down' and the middle button to scroll whole pages instead.

Source: forum post by dblank

  • Install rootsh and nano
  • Close any running browsers.
  • Open XTerminal and type:
sudo gainroot

You are now using the root account, visible by the '#' instead of the normal '$' sign. Be aware that while using the root account you can change (or mess up) anything on the system.

  • in Xterminal type:
invoke-rc.d tablet-browser-daemon stop
nano /usr/lib/microb-engine/chrome/toolkit/content/global/platformHTMLBindings.xml 

change

<handler event="keypress" keycode="VK_UP" command="cmd_scrollLineUp" />
<handler event="keypress" keycode="VK_DOWN" command="cmd_scrollLineDown" />

to:

<handler event="keypress" keycode="VK_UP" command="cmd_movePageUp"/>
<handler event="keypress" keycode="VK_DOWN" command="cmd_movePageDown"/>

If you also want to use the middle button to scroll forward add the line:

<handler event="keypress" keycode="VK_RETURN" command="cmd_movePageDown"/>

Instead of 'cmd_movePageDown' you can also use 'cmd_scrollPageDown' to scroll forward smoothly.

type 'ctrl, x, y' to save and close the file.

  • in Xterminal type:
nano /home/user/.mozilla/microb/prefs.js 

change

user_pref("snav.enabled", true);

to:

user_pref("snav.enabled", false);
  • run in Terminal:
chown user:users /home/user/.mozilla/microb/prefs.js
invoke-rc.d tablet-browser-daemon start
exit

Furthermore smooth scrolling can be enabled to show the cmd_scrollPageDown act as real scrolling instead of skipping forward.


All times are GMT -4. The time now is 09:22 PM.