mirror of
https://github.com/zyedidia/micro
synced 2024-10-14 11:52:32 +00:00
parent
553b3d80c4
commit
4a860625af
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue