// JW: changed (0.9.6) to when-ancestor just to be on the safe side
// if the title contain active comps
installKeyBindings(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT);
// JW: removed the automatic keybindings in WHEN_IN_FOCUSED
// which caused #555-swingx (binding active if not focused)
ActionMap actionMap = monthView.getActionMap();
KeyboardAction acceptAction = new KeyboardAction(KeyboardAction.ACCEPT_SELECTION);
actionMap.put("acceptSelection", acceptAction);
KeyboardAction cancelAction = new KeyboardAction(KeyboardAction.CANCEL_SELECTION);
actionMap.put("cancelSelection", cancelAction);
actionMap.put("selectPreviousDay", new KeyboardAction(KeyboardAction.SELECT_PREVIOUS_DAY));
actionMap.put("selectNextDay", new KeyboardAction(KeyboardAction.SELECT_NEXT_DAY));
actionMap.put("selectDayInPreviousWeek", new KeyboardAction(KeyboardAction.SELECT_DAY_PREVIOUS_WEEK));
actionMap.put("selectDayInNextWeek", new KeyboardAction(KeyboardAction.SELECT_DAY_NEXT_WEEK));
actionMap.put("adjustSelectionPreviousDay", new KeyboardAction(KeyboardAction.ADJUST_SELECTION_PREVIOUS_DAY));
actionMap.put("adjustSelectionNextDay", new KeyboardAction(KeyboardAction.ADJUST_SELECTION_NEXT_DAY));
actionMap.put("adjustSelectionPreviousWeek", new KeyboardAction(KeyboardAction.ADJUST_SELECTION_PREVIOUS_WEEK));
actionMap.put("adjustSelectionNextWeek", new KeyboardAction(KeyboardAction.ADJUST_SELECTION_NEXT_WEEK));
actionMap.put(JXMonthView.COMMIT_KEY, acceptAction);
actionMap.put(JXMonthView.CANCEL_KEY, cancelAction);
// PENDING JW: complete (year-, decade-, ?? ) and consolidate with KeyboardAction
// additional navigation actions
AbstractActionExt prev = new AbstractActionExt() {