feat: without jbr

This commit is contained in:
hstyi
2025-03-15 13:15:55 +08:00
committed by hstyi
parent 9884ed19fa
commit 4bb1a411e8
16 changed files with 405 additions and 405 deletions

View File

@@ -119,10 +119,11 @@ class KeymapPanel : JPanel(BorderLayout()) {
val keymap = getCurrentKeymap()
val index = keymapComboBox.selectedIndex
if (keymap != null && !keymap.isReadonly && index >= 0) {
val text = InputDialog(
val text = OptionPane.showInputDialog(
SwingUtilities.getWindowAncestor(this@KeymapPanel),
title = renameBtn.toolTipText, text = keymap.name
).getText()
title = renameBtn.toolTipText,
value = keymap.name
)
if (!text.isNullOrBlank()) {
if (text != keymap.name) {
keymapManager.removeKeymap(keymap.name)