projects
/
Misc
/
ipe.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
553acbe
)
graph iplet should now also work with ipe versions 7.1.7 and 7.1.8
author
Thomas Bläsius
<thomas.blaesius@kit.edu>
Wed, 26 Aug 2015 09:33:27 +0000
(11:33 +0200)
committer
Thomas Bläsius
<thomas.blaesius@kit.edu>
Wed, 26 Aug 2015 09:33:27 +0000
(11:33 +0200)
ipelets/graph/graph.lua
patch
|
blob
|
history
diff --git
a/ipelets/graph/graph.lua
b/ipelets/graph/graph.lua
index c2cf500491f9c27549530bdbedded39ab78a5f4f..7889367cec395c8f954feb6d6bfd73bb11d400ad 100644
(file)
--- a/
ipelets/graph/graph.lua
+++ b/
ipelets/graph/graph.lua
@@
-86,14
+86,21
@@
_G.EDITTOOL.graph_backup_key = _G.EDITTOOL.key
-- overwriting
function _G.EDITTOOL:key(code, modifiers, text)
-- overwriting
function _G.EDITTOOL:key(code, modifiers, text)
+ -- The parameters of the key() function have changed in version
+ -- 7.1.7. Thus, we potentially have to remap the parameters.
+ if text == nil then
+ text = code
+ end
self:graph_backup_key(code, modifiers, text)
if deactivateGraphMode then return end
-- react if and only if we are currently editing a mark and key ESC
-- or SPACE is pressed
self:graph_backup_key(code, modifiers, text)
if deactivateGraphMode then return end
-- react if and only if we are currently editing a mark and key ESC
-- or SPACE is pressed
- if text ~= "\027" and code ~= 0x20 then return end
- if
not editing
then return end
+
--
if text ~= "\027" and code ~= 0x20 then return end
+ if
text ~= "\027" and text ~= " "
then return end
+ if not editing then return end
+
editing = false
-- finding new and old position
editing = false
-- finding new and old position