7677787980818283848586
ToolDockItem tdi = (ToolDockItem) items.get(i); Tool t = (Tool) tdi.getTool(); if (t.getShortcut() != null) { Shortcut s = t.getShortcut(); if (s.matchesKeyEvent(e)) { activeItem = tdi; } } }