Fix test
Fix syntax highlighter style keys
Fix a potential bug where pending is never reset

also fix call to QInputDialog