diff --git a/CHANGELOG.md b/CHANGELOG.md
index 388d1860..5277a694 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,4 @@
+- Fixed Cancel button sending Ctrl+C instead of Esc, making it impossible to exit /usage and similar screens
- Fixed "Open with Claude Code" context menu not applying Default profile settings (API key, proxy, Extra CLI args, etc.) (https://github.com/nbclaudecodegui/NetbeansClaudeCodeGui/issues/23)
- Added alphabetical sorting to the "Select Project" dropdown (https://github.com/nbclaudecodegui/NetbeansClaudeCodeGui/issues/21)
- Fixed Default profile settings (API key, connection type, proxy, etc.) not being saved when edited in Tools → Options → Claude Code → Profiles
diff --git a/docs/to-do.md b/docs/to-do.md
index d35c0811..eadc7e77 100644
--- a/docs/to-do.md
+++ b/docs/to-do.md
@@ -4,8 +4,8 @@
- [x] **IDE restore не сохраняет режим Resume specific** — `ClaudeSessionTab.writeExternal()` сохраняет значение настройки `contextMenuSessionMode` вместо фактического режима/resumeId, с которым была открыта сессия. Если сессия была открыта через "Resume specific", после рестарта IDE она восстановится в режиме Continue last (или New), а не возобновит ту же конкретную сессию.
- [ ] Drag and drop in a text field: вставлять в текущую позицию курсора, а не
сдвигать позицию курсора. Рднако, возможность перемещения позиции курсора кликом должна быть созранена
-- [ ] Невозможно выйти из /usage по кнопке cancel. Отладить
-- [ ] Не учитываются цвета Look and Feel для кнопок
+- [x] Невозможно выйти из /usage по кнопке cancel. Отладить
+- [x] Не учитываются цвета Look and Feel для кнопок
- [ ] Previe markdown: не показываются изображения
- [ ] Previe markdown: не работает навигация по линкам внутри файла
diff --git a/pom.xml b/pom.xml
index 0ff515e4..0f436e65 100644
--- a/pom.xml
+++ b/pom.xml
@@ -6,7 +6,7 @@
io.github.nbclaudecodegui
netbeans-claude-code-gui
- 0.21.45-SNAPSHOT
+ 0.21.46-SNAPSHOT
nbm
Netbeans Claude Code GUI
NetBeans plugin that provides a GUI for Claude Code CLI — run claude code sessions directly inside the IDE.
diff --git a/src/main/java/io/github/nbclaudecodegui/controller/ClaudeSessionController.java b/src/main/java/io/github/nbclaudecodegui/controller/ClaudeSessionController.java
index 3bfb3228..215c1fbf 100644
--- a/src/main/java/io/github/nbclaudecodegui/controller/ClaudeSessionController.java
+++ b/src/main/java/io/github/nbclaudecodegui/controller/ClaudeSessionController.java
@@ -365,13 +365,13 @@ public void sendPrompt(String text) {
}
/**
- * Sends Ctrl+C (0x03) to the PTY and transitions to READY state.
+ * Sends ESC (0x1B) to the PTY and transitions to READY state.
* No-op if no PTY connector is active.
*/
public void cancelPrompt() {
if (connector == null) return;
try {
- sendCancelToPty(new byte[]{0x03});
+ sendCancelToPty(new byte[]{0x1b});
} catch (IOException ex) {
LOG.warning("cancelPrompt failed: " + ex.getMessage());
}