Various small fixes and code duplicates removals.

Signed-off-by: Peter Tworek <tworaz666@gmail.com>
Search: Imprive page scrolling and virtual keyboard handling

Signed-off-by: Peter Tworek <tworaz666@gmail.com>