Fossil

Check-in [9cfd4e2b23]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fix the logic to cancel default actions and further event bubbling to take effect for all handled keys.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | timeline-keyboard-navigation
Files: files | file ages | folders
SHA3-256: 9cfd4e2b2341787bab647eba22679a2a52aeaa55952857674c0d72eb6da36267
User & Date: florian 2022-08-19 04:42:00.000
Context
2022-09-25
07:23
Sync with trunk. ... (check-in: 3c92971996 user: florian tags: timeline-keyboard-navigation)
2022-08-19
04:42
Fix the logic to cancel default actions and further event bubbling to take effect for all handled keys. ... (check-in: 9cfd4e2b23 user: florian tags: timeline-keyboard-navigation)
2022-08-15
10:25
Simplification and harmonisation of the help text. ... (check-in: 6d10841735 user: florian tags: timeline-keyboard-navigation)
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/graph.js.
1028
1029
1030
1031
1032
1033
1034
1035


1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
        case kTICK:
        case kUNTK:
        case kCPYH:
        case kCPYB:
        case kTMLN:
        case kTMLB:
        case kVIEW:
        case kDONE:


          evt.preventDefault();
          evt.stopPropagation();
          break;
        default:
          return;
      }
      if( key==kCNTR ){
        var cid = focusViewportCenterId();
        if( cid ){
          focusCacheSet(cid);
          focusVisualize(cid,false);
          focusCookieInit();
        }







|
>
>
|
|
<
<
<
<







1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039




1040
1041
1042
1043
1044
1045
1046
        case kTICK:
        case kUNTK:
        case kCPYH:
        case kCPYB:
        case kTMLN:
        case kTMLB:
        case kVIEW:
        case kDONE: break;
        default: return;
      }
      evt.preventDefault();
      evt.stopPropagation();




      if( key==kCNTR ){
        var cid = focusViewportCenterId();
        if( cid ){
          focusCacheSet(cid);
          focusVisualize(cid,false);
          focusCookieInit();
        }