From 1998f766b13b122295b454fb7aa9a89dca7c57bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wiktor=20Obr=C4=99bski?= Date: Thu, 19 Sep 2024 20:53:23 +0200 Subject: [PATCH] Migrate note manager confirmation to ctrl+enter --- docs/notes.rst | 2 +- internal/notes/note_manager.lua | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/notes.rst b/docs/notes.rst index 19e169428..a67e05b37 100644 --- a/docs/notes.rst +++ b/docs/notes.rst @@ -29,7 +29,7 @@ Creating a Note 1. Use the keyboard cursor to select the desired map tile where you want to place a note. 2. Execute ``notes add`` via the DFHack console. 3. In the pop-up dialog, fill in the note's title and detailed comment. -4. Press :kbd:`Ctrl` + :kbd:`S` to create the note. +4. Press :kbd:`Ctrl` + :kbd:`Enter` to create the note. Editing or Deleting a Note -------------------------- diff --git a/internal/notes/note_manager.lua b/internal/notes/note_manager.lua index b7a8d8059..9df64d969 100644 --- a/internal/notes/note_manager.lua +++ b/internal/notes/note_manager.lua @@ -65,7 +65,7 @@ function NoteManager:init() frame={l=0,t=0,h=1}, auto_width=true, label='Save', - key='CUSTOM_CTRL_S', + key='CUSTOM_CTRL_ENTER', visible=edit_mode, on_activate=function() self:saveNote() end, enabled=function() return #self.subviews.name:getText() > 0 end, @@ -75,7 +75,7 @@ function NoteManager:init() frame={l=0,t=0,h=1}, auto_width=true, label='Create', - key='CUSTOM_CTRL_S', + key='CUSTOM_CTRL_ENTER', visible=not edit_mode, on_activate=function() self:createNote() end, enabled=function() return #self.subviews.name:getText() > 0 end,