MaterialFX icon indicating copy to clipboard operation
MaterialFX copied to clipboard

MFXTextField based controls minor issues

Open gilad4 opened this issue 2 years ago • 2 comments

Playing around with the input controls I have noticed some minor issues:

  • For all MFXTextField based controls Pressing TAB to focus traverse between controls works correctly, but pressing Shift+TAB to reverse does not work. This can be fixed by setting 'setFocusTraversable' to false and leaving the value for the boundField as true. This should probably be their default values.

  • MFXTextField / MFXPasswordField context menu The context menu items Delete / Undo / Redo, do not work since they are not referring to the inner boundText. The shortcut for Delete (Ctrl+D) as shown in the accelerator hint does not work either - not sure if there an event handler for this somewhere but I did not see any. image

  • MFXPasswordField The properties allowCutProperty/allowCopyProperty/allowPasteProperty are not taking into account when pressing the relevant shortcut keys, so basically user is able to cut/copy/paste even when properties are set to false

Can see my commit which fixes these issues. https://github.com/gilad4/MaterialFX/commit/8e620dad61139d3f26fbf4caf50e66fa1ebd5f42 Tell me in case you want a PR

gilad4 avatar Jun 21 '22 14:06 gilad4

How can I make everything I write in an MFXTextField be in uppercase? Please

Kaly380 avatar Jun 21 '22 14:06 Kaly380

@Kaly380 not relevant to this issue but you can try this:

myMfxTextField.delegateSetTextFormatter(new TextFormatter<>(change -> {
  change.setText(change.getText().toUpperCase());
  return change;
}));

gilad4 avatar Jun 21 '22 15:06 gilad4