|
|
@ -36,6 +36,7 @@ class PageKeyDialog(context: Context) : Dialog(context, R.style.AppTheme_AlertDi |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
editableText.append(",").append(keyCode.toString()) |
|
|
|
editableText.append(",").append(keyCode.toString()) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
return true |
|
|
|
} else if (et_next.hasFocus()) { |
|
|
|
} else if (et_next.hasFocus()) { |
|
|
|
val editableText = et_next.editableText |
|
|
|
val editableText = et_next.editableText |
|
|
|
if (editableText.isEmpty() or editableText.endsWith(",")) { |
|
|
|
if (editableText.isEmpty() or editableText.endsWith(",")) { |
|
|
@ -43,6 +44,7 @@ class PageKeyDialog(context: Context) : Dialog(context, R.style.AppTheme_AlertDi |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
editableText.append(",").append(keyCode.toString()) |
|
|
|
editableText.append(",").append(keyCode.toString()) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
return true |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
return super.onKeyDown(keyCode, event) |
|
|
|
return super.onKeyDown(keyCode, event) |
|
|
|