added X9E navigation to the crossfire scripts (#5904)

Submitted on behalf of @aguindehi

fixes #5893
This commit is contained in:
Raphael Coeffic
2018-05-23 08:10:35 +02:00
committed by Bertrand Songis
parent ffb6b1a6fd
commit 3665d2afb4
2 changed files with 6 additions and 6 deletions
@@ -87,9 +87,9 @@ local function run(event)
return 2
elseif event == EVT_EXIT_BREAK then
return 2
elseif event == EVT_PLUS_FIRST or event == EVT_PLUS_REPT then
elseif event == EVT_PLUS_FIRST or event == EVT_PLUS_REPT or event == EVT_ROT_LEFT then
selectDevice(1)
elseif event == EVT_MINUS_FIRST or event == EVT_MINUS_REPT then
elseif event == EVT_MINUS_FIRST or event == EVT_MINUS_REPT or event == EVT_ROT_RIGHT then
selectDevice(-1)
end
+4 -4
View File
@@ -451,15 +451,15 @@ local function runDevicePage(event)
end
end
elseif edit then
if event == EVT_PLUS_FIRST or event == EVT_PLUS_REPT then
if event == EVT_PLUS_FIRST or event == EVT_PLUS_REPT or event == EVT_ROT_LEFT then
incrField(1)
elseif event == EVT_MINUS_FIRST or event == EVT_MINUS_REPT then
elseif event == EVT_MINUS_FIRST or event == EVT_MINUS_REPT or event == EVT_ROT_RIGHT then
incrField(-1)
end
else
if event == EVT_MINUS_FIRST then
if event == EVT_MINUS_FIRST or event == EVT_ROT_RIGHT then
selectField(1)
elseif event == EVT_PLUS_FIRST then
elseif event == EVT_PLUS_FIRST or event == EVT_ROT_LEFT then
selectField(-1)
end
end