File tree 2 files changed +5
-2
lines changed
2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -173,6 +173,7 @@ class MarkdownQuoteButtonElement extends MarkdownButtonElement {
173
173
connectedCallback ( ) {
174
174
super . connectedCallback ( )
175
175
this . setAttribute ( 'hotkey' , '.' )
176
+ this . setAttribute ( 'hotkey-requires-shift' , 'true' )
176
177
}
177
178
}
178
179
Original file line number Diff line number Diff line change @@ -468,10 +468,12 @@ describe('markdown-toolbar-element', function () {
468
468
assert . equal ( '> |' , visualValue ( ) )
469
469
} )
470
470
471
- it ( 'inserts selected quoted sample via hotkey' , function ( ) {
471
+ it ( 'inserts selected quoted sample via hotkey, requiring shift ' , function ( ) {
472
472
focus ( )
473
473
setVisualValue ( '' )
474
- pressHotkey ( '.' )
474
+ pressHotkey ( '.' , false )
475
+ assert . equal ( '|' , visualValue ( ) )
476
+ pressHotkey ( '.' , true )
475
477
assert . equal ( '> |' , visualValue ( ) )
476
478
} )
477
479
You can’t perform that action at this time.
0 commit comments