keys 2
This commit is contained in:
@@ -131,7 +131,7 @@ pub(crate) fn handle_editor_input(event: Event, term_w: u16, ed: &mut EditorStat
|
||||
KeyCode::Right => ed.move_cursor(1, 0),
|
||||
KeyCode::Char('l') => ui.log.toggle(),
|
||||
// `g` opens the glyph picker to edit the current drawing glyph.
|
||||
KeyCode::Char('g') => ed.open_glyph_picker(),
|
||||
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(),
|
||||
@@ -143,7 +143,7 @@ pub(crate) fn handle_editor_input(event: Event, term_w: u16, ed: &mut EditorStat
|
||||
},
|
||||
Event::Mouse(m) => match m.kind {
|
||||
// Right-click moves the cursor to the clicked cell (if on the board).
|
||||
MouseEventKind::Down(MouseButton::Right) => ed.set_cursor_at_screen(m.column, m.row),
|
||||
MouseEventKind::Down(MouseButton::Left) => ed.set_cursor_at_screen(m.column, m.row),
|
||||
// Dragging the divider resizes the sidebar.
|
||||
MouseEventKind::Drag(_) => ed.resize_sidebar(term_w.saturating_sub(m.column), term_w),
|
||||
_ => {}
|
||||
|
||||
Reference in New Issue
Block a user