Text box changes are ignored if Enter is not pressed

Bug #1270801 reported by Danil Sokolov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Workcraft
Fix Committed
Low
Danil Sokolov

Bug Description

In dialogue boxes we can send a fake Enter keypress when OK button is clicked.

Tags: ui

Related branches

Changed in workcraft:
importance: Undecided → Low
tags: added: ui
Changed in workcraft:
milestone: none → 3.0
status: New → Triaged
Revision history for this message
Danil Sokolov (danilovesky) wrote :

Fixed by adding this code to the constructor of GenericCellEditor:

    textField.addFocusListener(new FocusAdapter() {
        @Override
        public void focusLost(FocusEvent e) {
            stopCellEditing();
        }
    });

Changed in workcraft:
status: Triaged → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.