Extracted input adapter logic of live panel into dedicated inner class.

Signed-off-by: Jakob Brandsborg Ehmsen <jakobehmsen.github@gmail.com>