void SaveSelectedKanji()
    {
        Kanji ce = (Kanji)kanjiLibrary.GetEntryByIndex(selKanji);

        ce.CopyValues(kanjiBase);
        Undo.RecordObject(ce, "Updated kanji");
        EditorUtility.SetDirty(ce);
    }
 void SelectKanji()
 {
     GUI.FocusControl(null);
     if (selKanji == -1)
     {
         // Nothing selected
         kanjiBase.ResetValues();
     }
     else
     {
         // Something selected
         Kanji ce = (Kanji)kanjiLibrary.GetEntryByIndex(selKanji);
         kanjiBase.CopyValues(ce);
     }
 }