Skip to content

Commit

Permalink
Migrate note manager confirmation to ctrl+enter
Browse files Browse the repository at this point in the history
  • Loading branch information
wiktor-obrebski committed Sep 19, 2024
1 parent 9f33beb commit 1998f76
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/notes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
--------------------------
Expand Down
4 changes: 2 additions & 2 deletions internal/notes/note_manager.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand Down

0 comments on commit 1998f76

Please sign in to comment.