Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions addon/globalPlugins/evtTracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import NVDAObjects
from scriptHandler import script
import wx
import ui


# Security: disable the global plugin altogether in secure mode.
Expand Down Expand Up @@ -242,6 +243,7 @@ def __init__(self, eventHistory):
style=wx.LB_SINGLE
)
self.list.Bind(wx.EVT_LISTBOX, self.onListItemSelected)
self.list.Bind(wx.EVT_LISTBOX_DCLICK, self.onListItemDClick)
contentsSizer.Add(self.list, flag=wx.EXPAND)
contentsSizer.AddSpacer(gui.guiHelper.SPACE_BETWEEN_VERTICAL_DIALOG_ITEMS)
self.description = gui.guiHelper.LabeledControlHelper(
Expand Down Expand Up @@ -273,3 +275,9 @@ def onListItemSelected(self, event):
nvdaEvent = self.eventHistory[index] if index >= 0 else None
if nvdaEvent:
self.description.control.Value = "\n".join(nvdaEvent.info)

def onListItemDClick(self, event):
index = event.GetSelection()
nvdaEvent = self.eventHistory[index] if index >= 0 else None
if nvdaEvent:
ui.browseableMessage("\n".join(nvdaEvent.info), nvdaEvent.type)