mirror of
https://github.com/issadarkthing/gomu.git
synced 2025-05-01 13:48:52 +08:00
disable global keybindings when repl is running
This commit is contained in:
parent
ec68b084b5
commit
35e75ba83e
5
start.go
5
start.go
@ -106,7 +106,6 @@ color_popup = "#0A0F14"
|
|||||||
// vim: syntax=go
|
// vim: syntax=go
|
||||||
`
|
`
|
||||||
|
|
||||||
|
|
||||||
cfg := expandTilde(config)
|
cfg := expandTilde(config)
|
||||||
|
|
||||||
_, err := os.Stat(cfg)
|
_, err := os.Stat(cfg)
|
||||||
@ -219,6 +218,10 @@ func start(application *tview.Application, args Args) {
|
|||||||
// global keybindings are handled here
|
// global keybindings are handled here
|
||||||
application.SetInputCapture(func(e *tcell.EventKey) *tcell.EventKey {
|
application.SetInputCapture(func(e *tcell.EventKey) *tcell.EventKey {
|
||||||
|
|
||||||
|
if gomu.pages.HasPage("repl-input-popup") {
|
||||||
|
return e
|
||||||
|
}
|
||||||
|
|
||||||
popupName, _ := gomu.pages.GetFrontPage()
|
popupName, _ := gomu.pages.GetFrontPage()
|
||||||
|
|
||||||
// disables keybindings when writing in input fields
|
// disables keybindings when writing in input fields
|
||||||
|
Loading…
x
Reference in New Issue
Block a user