fix some cppcheck warnings
add 'g' shortcut to ebook window