fixed search with ctrl+f not working, also similar shortcuts.

This commit is contained in:
Vilius 2018-10-20 20:16:10 +03:00
parent 1400f2e7f7
commit d09eb1ea5a
5 changed files with 7 additions and 7 deletions

6
dist/bundle.js vendored

File diff suppressed because one or more lines are too long

View File

@ -28,7 +28,7 @@ class Image_autoAdjust_class {
if (event.target.type == 'text' || event.target.tagName == 'INPUT' || event.target.type == 'textarea')
return;
if (code == 70) {
if (code == 70 && event.ctrlKey != true && event.metaKey != true) {
//F - adjust
_this.auto_adjust();
event.preventDefault();

View File

@ -27,7 +27,7 @@ class Image_grid_class {
if (event.target.type == 'text' || event.target.tagName == 'INPUT' || event.target.type == 'textarea')
return;
if (code == 71) {
if (code == 71 && event.ctrlKey != true && event.metaKey != true) {
//G - grid
_this.toggle_grid({visible: !_this.GUI.grid});
event.preventDefault();

View File

@ -34,7 +34,7 @@ class Image_resize_class {
if (event.target.type == 'text' || event.target.tagName == 'INPUT' || event.target.type == 'textarea')
return;
if (code == 82) {
if (code == 82 && event.ctrlKey != true && event.metaKey != true) {
//R - resize
_this.resize();
event.preventDefault();

View File

@ -24,7 +24,7 @@ class Layer_new_class {
if (event.target.type == 'text' || event.target.tagName == 'INPUT' || event.target.type == 'textarea')
return;
if (code == 78) {
if (code == 78 && event.ctrlKey != true && event.metaKey != true) {
//N
_this.new();
}