Prevent DefaultContext from being unregistered from key event handlers
This commit is contained in:
@@ -3,4 +3,12 @@ package com.bartlomiejpluta.base.api.input;
|
||||
@FunctionalInterface
|
||||
public interface KeyEventHandler {
|
||||
void handleKeyEvent(KeyEvent event);
|
||||
|
||||
default void onKeyEventHandlerRegister() {
|
||||
// do nothing
|
||||
}
|
||||
|
||||
default void onKeyEventHandlerUnregister() {
|
||||
// do nothing
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user