Skip to content
Snippets Groups Projects
Unverified Commit 58008c33 authored by StaffEngineer's avatar StaffEngineer Committed by GitHub
Browse files

Merge branch 'main' into bevy_0.12

parents 70a53888 d7bce2f2
No related branches found
No related tags found
No related merge requests found
...@@ -358,7 +358,7 @@ pub(crate) fn input_kb( ...@@ -358,7 +358,7 @@ pub(crate) fn input_kb(
return; return;
} }
if keys.just_pressed(KeyCode::Back) { if keys.just_pressed(KeyCode::Back) & !readonly {
// fix for issue #8 // fix for issue #8
if let Some(select) = editor.0.select_opt() { if let Some(select) = editor.0.select_opt() {
if editor.0.cursor().line == select.line && editor.0.cursor().index == select.index if editor.0.cursor().line == select.line && editor.0.cursor().index == select.index
...@@ -373,7 +373,7 @@ pub(crate) fn input_kb( ...@@ -373,7 +373,7 @@ pub(crate) fn input_kb(
if keys.just_released(KeyCode::Back) { if keys.just_released(KeyCode::Back) {
*is_deleting = false; *is_deleting = false;
} }
if keys.just_pressed(KeyCode::Delete) { if keys.just_pressed(KeyCode::Delete) && !readonly {
editor.0.action(&mut font_system.0, Action::Delete); editor.0.action(&mut font_system.0, Action::Delete);
} }
if keys.just_pressed(KeyCode::Escape) { if keys.just_pressed(KeyCode::Escape) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment