The usual way to do things is to have the diode between the switch and the column/row. But I知 not 100% convinced that your way won稚 work. You値l be routing the current through a bunch more diodes than necessary, but I think they might still serve to isolate switches so you avoid ghosting.