Changeset 1397


Ignore:
Timestamp:
05/30/19 13:14:54 (5 years ago)
Author:
bln4
Message:

Permissions for tabing (with tab index) on text items.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/gio/gesture/StandardGestureActions.java

    r1382 r1397  
    11691169                // permission check
    11701170                if (on != null && !on.hasPermission(UserAppliedPermission.full)) {
    1171                         MessageBay.displayMessage("Insufficient permission to edit this item");
    1172                         return;
    1173                 }
    1174 
     1171                        boolean canTabToNext = !isShiftDown && ch == '\t' && on instanceof Text && ((Text) on).getTabNext() != null;
     1172                        boolean canTabToPrevious = isShiftDown && ch == '\t' && on instanceof Text && ((Text) on).getTabPrevious() != null;
     1173                        if (!canTabToNext && !canTabToPrevious) {
     1174                                MessageBay.displayMessage("Insufficient permission to edit this item");
     1175                                return;
     1176                        }
     1177                }
     1178               
    11751179                // Certain keys are handled by MagneticConstraints. 
    11761180                // If the shift key is down the 'inverted' version of that key is used.
Note: See TracChangeset for help on using the changeset viewer.