File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -872,6 +872,7 @@ class PainterroProc {
872
872
let handled = false ;
873
873
const clipFormat = 'image/png' ;
874
874
if ( evt . keyCode === KEYS . c && ( evt . ctrlKey || evt . metaKey ) ) {
875
+ console . log ( 'handing copy' )
875
876
if ( ! this . inserter . waitChoice && ! this . select . imagePlaced && this . select . shown ) {
876
877
const a = this . select . area ;
877
878
const w = a . bottoml [ 0 ] - a . topl [ 0 ] ;
@@ -1019,8 +1020,12 @@ class PainterroProc {
1019
1020
}
1020
1021
} ,
1021
1022
keydown : ( e ) => {
1022
- if ( event . target !== document . body ) {
1023
- return ; // ignore all focused inputs on page
1023
+ console . log ( 'event.target !== document.body' , event . target , document . body ) ;
1024
+ const argetEl = event . target ;
1025
+ const ignoreForSelectors = [ 'input' , 'textarea' , 'div[contenteditable]' ] ;
1026
+
1027
+ if ( ignoreForSelectors . some ( selector => argetEl . matches ( selector ) ) ) {
1028
+ return ; // ignore all elemetents which could be focused
1024
1029
}
1025
1030
if ( this . shown ) {
1026
1031
if ( this . colorPicker . handleKeyDown ( e ) ) {
You can’t perform that action at this time.
0 commit comments