Added functions and tests for chord editing in 'touch' mode