Tony CHEMIT pushed to branch develop at ultreiaio / ird-observe Commits: c6b06ad0 by Tony Chemit at 2020-12-24T11:47:38+01:00 Sur les éditeurs de date simple utiliser le même raccourci pour ouvrir la popup de date que pour une liste à sélection multiple (↓) - Closes #1694 - - - - - c95a8b97 by Tony Chemit at 2020-12-24T11:59:04+01:00 Commencer les raccourcis claviers pour changer d'onglet à partir de **shift F1** et plus **shift F5** - Closes #1695 - - - - - 2 changed files: - client/datasource/editor/api/src/main/java/fr/ird/observe/client/datasource/editor/api/content/ContentUIInitializer.java - client/datasource/editor/api/src/main/java/fr/ird/observe/client/datasource/editor/api/content/actions/GoToTab.java Changes: ===================================== client/datasource/editor/api/src/main/java/fr/ird/observe/client/datasource/editor/api/content/ContentUIInitializer.java ===================================== @@ -70,6 +70,7 @@ import org.nuiton.jaxx.widgets.text.NormalTextEditor; import org.nuiton.jaxx.widgets.text.UrlEditor; import javax.swing.ActionMap; +import javax.swing.InputMap; import javax.swing.JComboBox; import javax.swing.JComponent; import javax.swing.JLabel; @@ -430,6 +431,8 @@ public class ContentUIInitializer<UI extends ContentUI> extends UIInitializerSup initializerContext.checkFirstPass(); editor.setLocale(getClientConfig().getLocale()); editor.init(); + InputMap pickerInputMap = editor.getDateEditor().getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT); + pickerInputMap.put(KeyStroke.getKeyStroke("pressed DOWN"), "TOGGLE_POPUP"); JTextComponents.addAutoSelect(editor.getDateEditor().getEditor()); } ===================================== client/datasource/editor/api/src/main/java/fr/ird/observe/client/datasource/editor/api/content/actions/GoToTab.java ===================================== @@ -56,7 +56,7 @@ public class GoToTab extends ContentUIActionSupport<ContentUI> { int tabCount = tabbedPane.getTabCount(); for (int i = 0; i < tabCount; i++) { String titleAt = tabbedPane.getTitleAt(i); - KeyStroke keyStroke = Objects.requireNonNull(KeyStroke.getKeyStroke(keyStrokePrefix + (i + 6))); + KeyStroke keyStroke = Objects.requireNonNull(KeyStroke.getKeyStroke(keyStrokePrefix + (i + 1))); tabbedPane.setTitleAt(i, titleAt + ObserveKeyStrokesSupport.keyStrokeToStr(keyStroke)); GoToTab action = new GoToTab(tabbedPaneName, i, keyStroke); init(ui, null, action); View it on GitLab: https://gitlab.com/ultreiaio/ird-observe/-/compare/dfc4dea500dfa4125018229b7... -- View it on GitLab: https://gitlab.com/ultreiaio/ird-observe/-/compare/dfc4dea500dfa4125018229b7... You're receiving this email because of your account on gitlab.com.