Basic code for distinguishing possible edit actions