basic drawing
This commit is contained in:
@@ -126,8 +126,11 @@ pub(crate) fn handle_editor_input(event: Event, term_w: u16, ed: &mut EditorStat
|
||||
KeyCode::Left => ed.move_cursor(-1, 0),
|
||||
KeyCode::Right => ed.move_cursor(1, 0),
|
||||
KeyCode::Char('l') => ui.log.toggle(),
|
||||
// `g` opens the glyph picker for the cell under the cursor.
|
||||
// `g` opens the glyph picker to edit the current drawing glyph.
|
||||
KeyCode::Char('g') => ed.open_glyph_picker(),
|
||||
// Space stamps the current thing; Tab toggles draw mode.
|
||||
KeyCode::Char(' ') => ed.place_current(),
|
||||
KeyCode::Tab => ed.toggle_draw_mode(),
|
||||
// A menu letter opens its dialog; unmatched letters are ignored.
|
||||
KeyCode::Char(c) => {
|
||||
ed.menu_key(c);
|
||||
|
||||
Reference in New Issue
Block a user