mirror of
https://github.com/viliusle/miniPaint.git
synced 2026-02-06 13:51:51 +00:00
fixed search with ctrl+f not working, also similar shortcuts.
This commit is contained in:
parent
1400f2e7f7
commit
d09eb1ea5a
6
dist/bundle.js
vendored
6
dist/bundle.js
vendored
File diff suppressed because one or more lines are too long
@ -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();
|
||||
|
||||
@ -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();
|
||||
|
||||
@ -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();
|
||||
|
||||
@ -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();
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user