mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-17 06:17:12 +09:00
@@ -290,7 +290,7 @@ func (v *View) HandleEvent(event tcell.Event) {
|
||||
// Window resized
|
||||
v.Resize(e.Size())
|
||||
case *tcell.EventKey:
|
||||
if e.Key() == tcell.KeyRune && e.Modifiers() == 0 {
|
||||
if e.Key() == tcell.KeyRune && (e.Modifiers() == 0 || e.Modifiers() == tcell.ModShift) {
|
||||
// Insert a character
|
||||
if v.Cursor.HasSelection() {
|
||||
v.Cursor.DeleteSelection()
|
||||
|
||||
Reference in New Issue
Block a user