EveOPlus / eve-o-preview

An EVE client window switcher tool created to aid playing with multiple clients in CCP game EVE Online
https://forums.eveonline.com/t/eve-o-preview/4202
MIT License
178 stars 48 forks source link

Bug: "Alt+^" not assignable as Hotkey #23

Open p5hema2 opened 1 year ago

p5hema2 commented 1 year ago

If you define "Alt+^" as Hotkey the program fails to start.

Version 6.0.0.2

Error.log

System.InvalidOperationException: Error constructing handler for request of type MediatR.IRequestHandler`2[EveOPreview.Mediator.Messages.StartService,MediatR.Unit]. Register your handlers with the container. See the samples in GitHub for examples. ---> System.ArgumentException: Der angeforderte Wert "^" konnte nicht gefunden werden.
   bei System.Enum.TryParseEnum(Type enumType, String value, Boolean ignoreCase, EnumResult& parseResult)
   bei System.Windows.Forms.KeysConverter.ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, Object value)
   bei EveOPreview.Configuration.Implementation.ThumbnailConfiguration.StringToKey(String hotkey)
   bei System.Linq.Enumerable.WhereSelectListIterator`2.MoveNext()
   bei EveOPreview.Services.ThumbnailManager.RegisterCycleClientHotkey(IEnumerable`1 keys, Boolean isForwards, Dictionary`2 cycleOrder)
   bei EveOPreview.Services.ThumbnailManager..ctor(IMediator mediator, IThumbnailConfiguration configuration, IProcessMonitor processMonitor, IWindowManager windowManager, IThumbnailViewFactory factory)
   bei DynamicMethod(Object[] , Scope )
   bei LightInject.PerContainerLifetime.GetInstance(GetInstanceDelegate createInstance, Scope scope, Object[] arguments)
   bei DynamicMethod(Object[] , Scope )
   bei MediatR.ServiceFactoryExtensions.GetInstance[T](ServiceFactory factory)
   bei MediatR.Internal.RequestHandlerBase.GetHandler[THandler](ServiceFactory factory)
   --- Ende der internen Ausnahmestapelüberwachung ---
   bei MediatR.Internal.RequestHandlerBase.GetHandler[THandler](ServiceFactory factory)
   bei MediatR.Internal.RequestHandlerWrapperImpl`2.<>c__DisplayClass1_0.<Handle>g__Handler|0()
   bei MediatR.Internal.RequestHandlerWrapperImpl`2.Handle(IRequest`1 request, CancellationToken cancellationToken, ServiceFactory serviceFactory)
   bei MediatR.Mediator.Send[TResponse](IRequest`1 request, CancellationToken cancellationToken)
   bei EveOPreview.Presenters.MainFormPresenter.Activate()
   bei EveOPreview.View.MainForm.Show()
   bei EveOPreview.Presenter`1.Run()
   bei EveOPreview.Program.Main()

json

   {
  "ConfigVersion": 1,
  "CycleGroup1ForwardHotkeys": [
    "Alt+^",
  ],
  "CycleGroup1BackwardHotkeys": [
  ],
  "CycleGroup1ClientsOrder": {
    "EVE - xxx": 1,
    "EVE - xxx": 2,
    "EVE - xxx": 3,
    "EVE - xxx": 4,
    "EVE - xxx": 5
  },
...
}
Vizis commented 9 months ago

same with tilde "`" or "~"