bjornhanson / shellinabox

Automatically exported from code.google.com/p/shellinabox
Other
0 stars 0 forks source link

Virtual Keyboard Does not Appear in the Kindle Browser #119

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Visit a shell-in-a-box from Kindle 3 w/ SoftKeyboard enabled by default (so 
the image appears)
2. Click the keyboard icon.
3. "Nothing" happens.

What is the expected output? What do you see instead?
Keyboard should appear and be usable when the keyboard icon is clicked. Kindle 
has no right-click so it has to be enabled in the configuration/code for the 
image automatically appear to allow you to attempt to open the keyboard (which 
doesn't open).

What version of the product are you using? On what operating system?
2.10-r239, on Kindle 3.

The Kindle 3 has a WebKit-based (limited) web browser that (amazingly) can load 
shell-in-a-box and enable shell access from the Kindle! However, the kindle has 
no right-click capability (minor problem), and a keyboard with no Fkeys, Esc, 
Ctrl, or Alt (bigger problem for using a shell).

SOLUTION:
The virtual keyboard can be made to work! There are a few kindle-browser 
rendering issues that prevent it from displaying correctly with the default 
setup.

Here's how I got it to work:
File: styles.css
Line: ~167
Change: Comment out the bit about opacity, -moz-opacity, and filter. The kindle 
will render anything with < 1 opacity as completely transparent.

File: vt100.jspp
Line: ~870
Change: Change the HTML to read: 
                       '<div id="menu"></div>' +
                       '<div id="scrollable">' +
                       '<div id="keyboard" unselectable="on">' +
                       '</div>' +
(i.e. put the keyboard div inside the scrollable div) For some reason the 
kindle was rendering this (perhaps) under the scrollable div. Maybe a problem 
with zIndex implementation? Just a guess.

Then recompile and ta-da. The clean, auto-resizing virtual keyboard 
implementation now works like a charm on my Kindle 3!

Original issue reported on code.google.com by eric.m.m...@gmail.com on 27 Mar 2011 at 10:06

GoogleCodeExporter commented 8 years ago
Great solution, works like a charm! Thank you very much

Original comment by thorg...@gmail.com on 22 Sep 2011 at 5:44

GoogleCodeExporter commented 8 years ago
Hello, i am pretty new to command-line and such. 

Could you please explain how to access the two files you mention from the 
command line? 

kind regards,
Mathias Riis

Original comment by CoolGuyR...@gmail.com on 9 Aug 2015 at 1:04