Fossil SCM

Remap the shortcut to disable keyboard navigation mode to ESC. This is also a test case for the high-priority ESC handlers of the timeline tooltip and the hamburger menu, and things seem to work fine.

florian 2022-08-04 04:00 timeline-keyboard-navigation
Commit 80085809ac4099af2d7123fcbe551661cd785f1c83a0b6595b82c19fbe21c668
1 file changed +1 -1
+1 -1
--- src/graph.js
+++ src/graph.js
@@ -948,11 +948,11 @@
948948
kTICK = 188 /* , */,
949949
kCPYH = 66 /* B */,
950950
kCPYB = mSHIFT | 66 /* SHIFT+B */,
951951
kTMLN = 74 /* J */,
952952
kVIEW = 75 /* K */,
953
- kDONE = 76 /* L */,
953
+ kDONE = 27 /* ESC */,
954954
mod = evt.altKey<<15 | evt.ctrlKey<<14 | evt.shiftKey<<13,
955955
key = ( evt.which || evt.keyCode ) | mod;
956956
var dx = 0;
957957
switch( key ){
958958
case kFRST: dx = -2; break;
959959
--- src/graph.js
+++ src/graph.js
@@ -948,11 +948,11 @@
948 kTICK = 188 /* , */,
949 kCPYH = 66 /* B */,
950 kCPYB = mSHIFT | 66 /* SHIFT+B */,
951 kTMLN = 74 /* J */,
952 kVIEW = 75 /* K */,
953 kDONE = 76 /* L */,
954 mod = evt.altKey<<15 | evt.ctrlKey<<14 | evt.shiftKey<<13,
955 key = ( evt.which || evt.keyCode ) | mod;
956 var dx = 0;
957 switch( key ){
958 case kFRST: dx = -2; break;
959
--- src/graph.js
+++ src/graph.js
@@ -948,11 +948,11 @@
948 kTICK = 188 /* , */,
949 kCPYH = 66 /* B */,
950 kCPYB = mSHIFT | 66 /* SHIFT+B */,
951 kTMLN = 74 /* J */,
952 kVIEW = 75 /* K */,
953 kDONE = 27 /* ESC */,
954 mod = evt.altKey<<15 | evt.ctrlKey<<14 | evt.shiftKey<<13,
955 key = ( evt.which || evt.keyCode ) | mod;
956 var dx = 0;
957 switch( key ){
958 case kFRST: dx = -2; break;
959

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button