+ List<KeyAction> actions = new LinkedList<KeyAction>();
+
+ // TODO
+ actions.add(new KeyAction(Mode.NONE, KeyType.Tab,
+ Trans.StringId.KEY_ACTION_SWITCH_FORMAT) {
+ @Override
+ public boolean onAction() {
+ if (txtImage != null) {
+ txtImage.switchMode();
+ }
+
+ return false;
+ }
+ });
+ actions.add(new KeyAction(Mode.NONE, 'i',
+ Trans.StringId.KEY_ACTION_INVERT) {
+ @Override
+ public boolean onAction() {
+ if (txtImage != null) {
+ txtImage.invertColor();
+ }
+
+ return false;
+ }
+ });
+ actions.add(new KeyAction(Mode.NONE, 'f',
+ Trans.StringId.KEY_ACTION_FULLSCREEN) {
+ @Override
+ public boolean onAction() {
+ fullscreenImage = !fullscreenImage;
+ setImage(image);
+ return false;
+ }
+ });
+
+ return actions;