1
=== added file 'manual-tests/AltCombos.txt'
2
--- a/manual-tests/AltCombos.txt 1970-01-01 00:00:00 +0000
3
+++ b/manual-tests/AltCombos.txt 2012-03-14 09:20:23 +0000
5
+Alt+Arrow keys not passed to application
6
+----------------------------------------
7
+Tests that Alt+ArrowKey events are correctly passed to the active window
8
+when Unity is not responding to them.
10
+#. Open gnome-terminal
11
+#. While holding Alt, tap arrow keys: Up, Down, Right, Left
14
+ The terminal should show the keycodes were received as text "ABCD".
16
=== modified file 'plugins/unityshell/src/unityshell.cpp'
17
--- a/plugins/unityshell/src/unityshell.cpp 2012-03-13 20:44:08 +0000
18
+++ b/plugins/unityshell/src/unityshell.cpp 2012-03-14 09:20:23 +0000
19
@@ -1767,33 +1767,45 @@
20
bool UnityScreen::altTabPrevAllInitiate(CompAction* action, CompAction::State state, CompOption::Vector& options)
22
if (switcher_controller_->Visible())
24
switcher_controller_->Prev();
32
bool UnityScreen::altTabPrevInitiate(CompAction* action, CompAction::State state, CompOption::Vector& options)
34
if (switcher_controller_->Visible())
36
switcher_controller_->Prev();
44
bool UnityScreen::altTabDetailStartInitiate(CompAction* action, CompAction::State state, CompOption::Vector& options)
46
if (switcher_controller_->Visible())
48
switcher_controller_->SetDetail(true);
56
bool UnityScreen::altTabDetailStopInitiate(CompAction* action, CompAction::State state, CompOption::Vector& options)
58
if (switcher_controller_->Visible())
60
switcher_controller_->SetDetail(false);
68
bool UnityScreen::altTabNextWindowInitiate(CompAction* action, CompAction::State state, CompOption::Vector& options)
69
@@ -1813,9 +1825,12 @@
70
bool UnityScreen::altTabPrevWindowInitiate(CompAction* action, CompAction::State state, CompOption::Vector& options)
72
if (switcher_controller_->Visible())
74
switcher_controller_->PrevDetail();
82
bool UnityScreen::launcherSwitcherForwardInitiate(CompAction* action, CompAction::State state, CompOption::Vector& options)