mirror of
https://github.com/umap-project/umap.git
synced 2025-05-18 19:50:36 +02:00
Compare commits
No commits in common. "8a207afaeab54eef16f50b7d132d0766ca0a472d" and "e7388f6cb0f6062537538e9f4fa4df02600a8240" have entirely different histories.
8a207afaea
...
e7388f6cb0
2 changed files with 1 additions and 13 deletions
|
@ -541,13 +541,7 @@ export default class Umap extends ServerStored {
|
||||||
if (SAVEMANAGER.isDirty) this.saveAll()
|
if (SAVEMANAGER.isDirty) this.saveAll()
|
||||||
break
|
break
|
||||||
case 'z':
|
case 'z':
|
||||||
if (Utils.isWritable(event.target)) {
|
if (SAVEMANAGER.isDirty) this.askForReset()
|
||||||
used = false
|
|
||||||
break
|
|
||||||
}
|
|
||||||
if (SAVEMANAGER.isDirty) {
|
|
||||||
this.askForReset()
|
|
||||||
}
|
|
||||||
break
|
break
|
||||||
case 'm':
|
case 'm':
|
||||||
this._leafletMap.editTools.startMarker()
|
this._leafletMap.editTools.startMarker()
|
||||||
|
|
|
@ -465,12 +465,6 @@ export class WithEvents {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export function isWritable(element) {
|
|
||||||
if (['TEXTAREA', 'INPUT'].includes(element.tagName)) return true
|
|
||||||
if (element.isContentEditable) return true
|
|
||||||
return false
|
|
||||||
}
|
|
||||||
|
|
||||||
export const COLORS = [
|
export const COLORS = [
|
||||||
'Black',
|
'Black',
|
||||||
'Navy',
|
'Navy',
|
||||||
|
|
Loading…
Reference in a new issue