File tree Expand file tree Collapse file tree 2 files changed +25
-1
lines changed
src/components/HotkeyStorage Expand file tree Collapse file tree 2 files changed +25
-1
lines changed Original file line number Diff line number Diff line change 1+ describe ( "Test default keyboard shortcuts" , ( ) => {
2+ it . skip ( "should be able to navigate to label tab with default shortcut" , ( ) => {
3+ cy . visit ( "http://localhost:6001" )
4+
5+ cy . contains ( "New File" ) . click ( )
6+
7+ cy . wait ( 500 )
8+
9+ // TODO this doesn't trigger hot keys for some reason, I'm not sure how
10+ // good the support for testing keyboard shortcuts in cypress is
11+ cy . get ( "body" ) . trigger ( "keydown" , {
12+ keyCode : 51 ,
13+ release : false ,
14+ location : 0 ,
15+ which : 51 ,
16+ key : "3" ,
17+ code : "Digit3" ,
18+ } )
19+
20+ cy . contains ( "Percent Complete" )
21+ } )
22+ } )
Original file line number Diff line number Diff line change @@ -6,15 +6,17 @@ export const defaultHotkeys = [
66 {
77 id : "switch_to_label" ,
88 description : "Go to Labels Tab" ,
9- binding : "shift+l " ,
9+ binding : "shift+3 " ,
1010 } ,
1111 {
1212 id : "switch_to_setup" ,
1313 description : "Go to Setup Tab" ,
14+ binding : "shift+1" ,
1415 } ,
1516 {
1617 id : "switch_to_samples" ,
1718 description : "Go to Samples Tab" ,
19+ binding : "shift+2" ,
1820 } ,
1921 {
2022 id : "select_tool" ,
You can’t perform that action at this time.
0 commit comments