Skip to content

Commit

Permalink
(#357) Try to fix that AltGr+.... combination does not work
Browse files Browse the repository at this point in the history
  • Loading branch information
hymkor committed Feb 12, 2019
1 parent 6681173 commit af8470e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions readline/keyfunc.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,9 @@ func keyFuncDeleteOrAbort(ctx context.Context, this *Buffer) Result { // Ctrl-D
}

func keyFuncInsertSelf(ctx context.Context, this *Buffer, keys string) Result {
if len(keys) == 2 && keys[0] == '\x1B' { // for AltGr-shift
keys = keys[1:]
}
this.Insert(this.Cursor, []rune(keys))

w := this.GetWidthBetween(this.ViewStart, this.Cursor)
Expand Down

0 comments on commit af8470e

Please sign in to comment.