Skip to content

Commit f82deae

Browse files
author
Lenhard Reuter
committed
Enable tooltips on key down
1 parent 8569e2f commit f82deae

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

files/fabricweb/ux.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,12 @@ function mouseUp() {
7171
}
7272

7373
function init() {
74+
document.addEventListener('keydown', function (event) {
75+
if (event.ctrlKey && event.key === 'v') {
76+
showInsertHint();
77+
}
78+
});
79+
7480
var container_element = document.querySelector('.draggable');
7581
var draggie = new Draggabilly(container_element, {
7682
axis: 'x',

0 commit comments

Comments
 (0)