parent
a09ff23ca5
commit
a3abce9814
@ -3,6 +3,9 @@
|
||||
# easy-i18n Changelog
|
||||
|
||||
## [Unreleased]
|
||||
### Fixed
|
||||
- Key focus within tree or table view after translation change
|
||||
|
||||
### Changed
|
||||
- update Qodana to latest version
|
||||
|
||||
|
@ -90,8 +90,8 @@ public class TableView implements BusListener {
|
||||
}
|
||||
|
||||
if (row > -1) { // Matched @key
|
||||
table.scrollRectToVisible(
|
||||
new Rectangle(0, (row * table.getRowHeight()) + table.getHeight(), 0, 0));
|
||||
table.getSelectionModel().setSelectionInterval(row, row);
|
||||
table.scrollRectToVisible(new Rectangle(table.getCellRect(row, 0, true)));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -88,6 +88,8 @@ public class TreeView implements BusListener {
|
||||
public void onFocusKey(@Nullable String key) {
|
||||
if(key != null && currentMapper != null) {
|
||||
TreePath path = currentMapper.findTreePath(key);
|
||||
|
||||
this.tree.getSelectionModel().setSelectionPath(path);
|
||||
this.tree.scrollPathToVisible(path);
|
||||
|
||||
if(this.tree.isCollapsed(path)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user