Updated termbox-util library
This commit is contained in:
parent
447d135216
commit
b473d98f1a
@ -190,7 +190,7 @@ func (screen *BrowserScreen) handleInputKeyEvent(event termbox.Event) int {
|
|||||||
screen.mode = modeBrowse
|
screen.mode = modeBrowse
|
||||||
screen.inputModal.Clear()
|
screen.inputModal.Clear()
|
||||||
} else {
|
} else {
|
||||||
screen.inputModal.HandleKeyPress(event)
|
screen.inputModal.HandleEvent(event)
|
||||||
if screen.inputModal.IsDone() {
|
if screen.inputModal.IsDone() {
|
||||||
b, p, _ := screen.db.getGenericFromPath(screen.currentPath)
|
b, p, _ := screen.db.getGenericFromPath(screen.currentPath)
|
||||||
if b != nil {
|
if b != nil {
|
||||||
@ -235,7 +235,7 @@ func (screen *BrowserScreen) handleInputKeyEvent(event termbox.Event) int {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (screen *BrowserScreen) handleDeleteKeyEvent(event termbox.Event) int {
|
func (screen *BrowserScreen) handleDeleteKeyEvent(event termbox.Event) int {
|
||||||
screen.confirmModal.HandleKeyPress(event)
|
screen.confirmModal.HandleEvent(event)
|
||||||
if screen.confirmModal.IsDone() {
|
if screen.confirmModal.IsDone() {
|
||||||
if screen.confirmModal.IsAccepted() {
|
if screen.confirmModal.IsAccepted() {
|
||||||
holdNextPath := screen.db.getNextVisiblePath(screen.currentPath)
|
holdNextPath := screen.db.getNextVisiblePath(screen.currentPath)
|
||||||
@ -279,7 +279,7 @@ func (screen *BrowserScreen) handleInsertKeyEvent(event termbox.Event) int {
|
|||||||
screen.mode = modeBrowse
|
screen.mode = modeBrowse
|
||||||
screen.inputModal.Clear()
|
screen.inputModal.Clear()
|
||||||
} else {
|
} else {
|
||||||
screen.inputModal.HandleKeyPress(event)
|
screen.inputModal.HandleEvent(event)
|
||||||
if screen.inputModal.IsDone() {
|
if screen.inputModal.IsDone() {
|
||||||
newVal := screen.inputModal.GetValue()
|
newVal := screen.inputModal.GetValue()
|
||||||
screen.inputModal.Clear()
|
screen.inputModal.Clear()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user