mirror of
https://github.com/onyx-and-iris/nvda-voicemeeter.git
synced 2024-11-22 18:00:50 +00:00
refactor focus in events for rename popup
This commit is contained in:
parent
da77e1bba1
commit
749406afec
@ -239,18 +239,15 @@ class NVDAVMWindow(psg.Window):
|
|||||||
elif event == "Index":
|
elif event == "Index":
|
||||||
val = values["Index"]
|
val = values["Index"]
|
||||||
self.nvda.speak(f"Index {val}")
|
self.nvda.speak(f"Index {val}")
|
||||||
elif event.startswith("Index") and event.endswith("||FOCUS IN"):
|
elif event.endswith("||FOCUS IN"):
|
||||||
val = values["Index"]
|
if event.startswith("Index"):
|
||||||
self.nvda.speak(f"Index {val}")
|
val = values["Index"]
|
||||||
elif event.startswith("Edit") and event.endswith("||FOCUS IN"):
|
self.nvda.speak(f"Index {val}")
|
||||||
self.nvda.speak("Edit")
|
else:
|
||||||
|
self.nvda.speak(event.split("||")[0])
|
||||||
elif event == "Ok":
|
elif event == "Ok":
|
||||||
data = values
|
data = values
|
||||||
break
|
break
|
||||||
elif event.startswith("Ok") and event.endswith("||FOCUS IN"):
|
|
||||||
self.nvda.speak("Ok")
|
|
||||||
elif event.startswith("Cancel") and event.endswith("||FOCUS IN"):
|
|
||||||
self.nvda.speak("Cancel")
|
|
||||||
|
|
||||||
window.close()
|
window.close()
|
||||||
return data
|
return data
|
||||||
|
Loading…
Reference in New Issue
Block a user