* Added icon to "Recent >" menu item. * Refactored app menu implementation, and implemented keyboard accelerators. Still doesn't work though. * Few things fixed, but still doesn't work. * Clicking menu items works. * Fixing an issue with resources. * New menu binding implemented. Still doesn't work though. * Menu displayed properly, except for "Settings". * Menu works, but it doesn't refresh. * Works. But needs to be polished. * All known issues with the new app menu solved. * Significantly simplifying app menu binding. * Removing some obsolete classes. * Menu binding mechanism additionally optimized for performances. * Removing unused translations. * Further refactoring app menu binding, in order to make it more general. * New window mechanism simplified. Terminal-launching code refactored to be more readable. A bug with "SSH Info" fixed. * Merging the latest changed.
13 lines
347 B
C#
13 lines
347 B
C#
using System;
|
|
using Windows.System;
|
|
using FluentTerminal.Models.Enums;
|
|
|
|
namespace FluentTerminal.App.Services
|
|
{
|
|
public class AcceleratorKeyValidator : IAcceleratorKeyValidator
|
|
{
|
|
public bool Valid(int key) => Enum.IsDefined(typeof(VirtualKey), key);
|
|
|
|
public bool Valid(ExtendedVirtualKey key) => Valid((int) key);
|
|
}
|
|
} |