ShortcutRegistration implements Registration, Serializable { boolean isDirty() { return isDirty.get(); } ShortcutRegistration(Component lifecycleOwner,
            SerializableSupplier<Component[]> listenOnSuppliers,
            ShortcutEventListener eventListener, Key key); ShortcutRegistration withModifiers(KeyModifier... keyModifiers); ShortcutRegistration withAlt(); ShortcutRegistration withCtrl(); ShortcutRegistration withMeta(); ShortcutRegistration withShift(); ShortcutRegistration allowBrowserDefault(); ShortcutRegistration allowEventPropagation(); ShortcutRegistration bindLifecycleTo(Component component); ShortcutRegistration listenOn(Component... listenOnComponents); @Override void remove(); boolean isShortcutActive(); Key getKey(); Set<Key> getModifiers(); boolean isBrowserDefaultAllowed(); void setBrowserDefaultAllowed(boolean browserDefaultAllowed); boolean isEventPropagationAllowed(); void setEventPropagationAllowed(boolean eventPropagationAllowed); @Deprecated Component getOwner(); Component[] getOwners(); Component getLifecycleOwner(); @Override String toString();  }
@Test public void constructedRegistrationIsDirty() { ShortcutRegistration registration = new ShortcutRegistration( lifecycleOwner, () -> listenOn, event -> { }, Key.KEY_A); assertTrue(registration.isDirty()); }