Also allow ModShift to be on for windows terminals

Fixes #165
This commit is contained in:
Zachary Yedidia 2016-06-11 19:41:37 -04:00
parent 553b3d80c4
commit 4a860625af

View file

@ -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()