Alt+Tab
Alt«+»Tab ↹ — это общепринятое название сочетания клавиш, которое присутствует в Microsoft Windows с версии 1.0 (1985). Это сочетание клавиш переключает окна приложенийбез использования мыши; поэтому оно называлось «Переключатель задач» ( или «Перевернуть» в Windows Vista ).
Alt+Tab ↹ orders windows by дате последнего использования; thus, repeated Alt+Tab ↹ keystrokes will switch between the two most recent tasks. It can also be used alternate between a full-size window and the desktop. The window environment maintains a Z-упорядоченный list of top-level windows (tasks) with the most recently used tasks at the front and the desktop at the bottom, so the most recently used tasks can be switched to the most quickly.
The Alt+Tab ↹ keyboard combination has also been incorporated in other операционные системы and среды рабочего стола such as KDE, Xfce, and GNOME. В iOS and macOS have similar functionality by pressing ⌘ Command+Tab ↹ but that switches приложения, rather than окна.
Поведение
The use of the клавиши-модификатора Alt in using Alt+Tab ↹ differs from typical modifier key use in the following ways:
- There is a difference in behavior when the user releases Alt and presses Alt+Tab ↹ again vs. holding Alt continuously while pressing Tab ↹ repeatedly.
- Отпускание клавиши приводит к немедленному эффекту: закрывается переключатель задач и происходит переключение на выбранную задачу.Alt
There are many subtleties to the behavior of Alt+Tab ↹, and they have remained mostly unchanged over the years.
Данное поведение подчиняется следующим правилам:
- Если открыто несколько окон, список задач появляется сразу после нажатия кнопки мыши, пока она удерживается.Tab ↹Alt
- Список задач остается открытым до момента его публикации.Alt
- Tab ↹ moves the cursor forward in the list; ⇧ Shift+Tab ↹ moves it backward.
- Tab ↹ or ⇧ Shift+Tab ↹ will автоматически повторяться if held down (useful if there are many windows).
- With the initial press of Tab ↹ or ⇧ Shift+Tab ↹, the selection cursor starts on the window immediately following or immediately preceding the active one.
- If there are no topmost windows above the Если над активным окном, an initial ⇧ Shift+Tab ↹ wraps the cursor around to the end of the list.
- Щелчок мышью по значку задачи в окне задач переключает выполнение на эту задачу (не работает в Windows XP и более ранних версиях).
- Нажатие или щелчок мышью за пределами окна задачи, когда оно еще нажато, отменяет переключение.EscAlt
- Окна перечислены в порядке их расположения по оси Z.
- Все окна, которые "всегда находятся сверху", размещаются в начале последовательности Z-упорядочения, за ними следуют текущее окно и окна, расположенные под ним.
- Рабочий стол отображается в виде окна, как если бы это было окно верхнего уровня. В Windows 10 это больше не работает.
- При переключении на другое окно оно перемещается в начало списка Z, за исключением того, что окна, которые всегда находятся сверху, остаются вверху списка.
- When the Alt+Tab ↹ task switcher window is not active, Alt+Esc places the active window at the bottom of the Z-порядка. In Windows 8 the behavior has changed: the window will be moved one level down the списку Z-порядка, instead of going to the end.
- Alt+⇧ Shift+Esc is equivalent to one Alt+⇧ Shift+Tab ↹ except that minimized windows are selected without being restored.
- Minimizing a window also sends it to the back of the Z-порядка in the same way as Alt+Esc.
Эти правила влекут за собой следующие последствия:
- В отсутствие окон, постоянно находящихся поверх других окон, таких как Диспетчер задач, нажатие клавиши , нажатие клавиши , отпускание клавиши и отпускание клавиши (типичный способ использования клавиш-модификаторов) всегда будет переключать внимание между двумя последними выполненными задачами.AltTab ↹Tab ↹Alt
- Alt+ ⇧ Shift+Tab ↹ позволяет восстановить последнее свернутое окно. (Если есть окна, которые всегда находятся поверх других окон, будет выбрано нижнее из них.)
- Pressing Alt+Tab ↹-Tab ↹ (two tabs with Alt continuously held down) performs the same quick switch back and forth, but between three programs. Any number of Tab ↹ presses can be used to achieve this with any number of windows.
When the task list is initially activated by pressing Alt+Tab ↹, the list is populated in this order:
- Любые окна верхнего уровня, всегда находящиеся поверх других окон, в соответствии с Z-порядком, от передней панели к задней.
- Все обычные окна верхнего уровня расположены в порядке Z, спереди назад.
Порядок задач в списке задач не меняется, пока он открыт, но порядок задач может меняться между вызовами списка задач.
Windows Vista изменила стандартное поведение [1] (в большинстве стандартных установок) в своем интерфейсе Flip. Шесть наиболее недавно использованных элементов в порядке Flip работают, как описано, затем оставшиеся окна упорядочиваются по алфавиту по пути приложения (и, при необходимости, группируются в зависимости от параметра «группировать похожие кнопки панели задач», который включен по умолчанию).
В Windows 10 рабочий стол был удален из списка задач.
Иллюстративные примеры
Windows may be divided into two categories, 'always-on-top' and ordinary. When a task is switched to, it is moved to the head of its category. For the following example, suppose there are no 'always-on-top' windows. Let A be the current window title. Hold down Alt and press and release Tab once, leaving Alt pressed. The window list comes up. окно A is guaranteed to be first in the list. Suppose the complete list is A W Z E U B C. The selection cursor will initially be on окне W.. Suppose we want to switch to window U. Without releasing Alt, press Tab three more times and then release Alt. Then hold down Alt and press-release Tab once leaving Alt down. The window list will now show U A W Z E B C. Then Tab over to E and release Alt, selecting window E. Press and hold down Alt and press-release Tab once leaving Alt down. The window list will now show E U A W Z B C. Note that the windows switched to with Alt+Tab ↹ (E, U, A) are in order of how recently they were switched to. Now Tab over to A and release Alt. Press and hold down Alt and press-release Tab leaving Alt down. The window list will show A E U W Z B C. The effect of this most-recently used behavior is that to return to the most recent task, Tab is pressed once, for the second most recent task Tab is pressed twice, and so on for all tasks. The priority of a window in terms of Alt+Tab ↹ accessibility is how recently it was used. If A is now minimized, the list will become E U W Z B C A, and if Z, список станет is minimized the list becomes E U W B C A Z. Thus minimizing a window mimics the effect of not using it for a long time.
The commonplace alternation between the 2 most recent tasks (using a fast Alt+Tab ↹ with all keys released immediately) is precisely a special case of the above behavior. Suppose the windows are вид ABC and we want to alternate between A and B. Hold Alt while pressing and releasing Tab; continue holding Alt. The list will show A B C and the cursor will initially be over B. When Alt is released B will be selected, Tab having been pressed a total of 1 time, and zero attention to the task selection cursor having been necessary. Again, press and release Tab while holding Alt. The list will show B A C and the cursor will initially be over A. When Alt is released we have switched back to A. Displaying the list again, the order has returned to A B C and this sequence can recur. On close inspection, in the course of typing Alt+Tab ↹ and releasing both keys quickly, the task list window can be observed to flicker for a split second, so . If the user has been switching among 3 applications and wants to dispense with one of them by minimizing, one of the remaining ones will be on top immediately after minimizing, and ordinarily Alt+Tab ↹ will alternate between the 2 remaining windows. If a program fails to move to the end of the list when minimized, pressing Alt+Tab ↹ once will return to the minimized program. Failures such as this can result in a frenzied reordering of the Alt+Tab ↹ list by means of several Alt+Tab ↹-Tab ↹-Tab ↹... sequences to compensate for the program misbehavior. The algorithm for this reshuffling is intuitive after using for a long time. If the user attempts to switch to an application using Alt+Tab ↹ but the application fails to update its place in the z-order (for example, if its window procedure is hung), then the next time Alt+Tab ↹ is invoked, the task selection cursor may initially point unexpectedly far into the list of icons, just past the application in question, which will not have been moved to the head of the list.
Applications have some say in where they are located in the Alt+Tab ↹ order. The list of windows is altered by the creation and destruction of windows, programmatic hiding, showing, raising, and lowering of windows, and alterations to the window z-order.[2]
The order of the Alt+Tab ↹ list corresponds directly to the z-order, once the windows have been sorted according to 'always-on-top' status. Alt-Shift-Esc is equivalent to one Alt-Shift-Tab except that minimized windows are selected without being displayed.[3]
Проблемы и решения, специфичные для Windows
Alt+Tab ↹ works even if Проводник Windows is no longer running. On Windows NT 3.51 and prior, Alt+Tab ↹ is managed by CSRSS (Client/Server Runtime Subsystem). On Windows NT 4.0 and later, it's handled by the kernel mode оконной системы driver (win32k.sys).[4] It works even when Ctrl+Alt+Del and Ctrl+⇧ Shift+Esc (Диспетчер задач) (which are managed by Winlogon) do not.[5]
Alt+Tab ↹ may be intercepted (or effectively disabled) by means of a low-level keyboard hook.[6] Such a technique is used by applications such as the виртуальных сетевых вычислений (VNC) viewer to pass Alt+Tab ↹ keystrokes to the remote desktop when the VNC window is active.
В Windows XP программа Tweak UI PowerToy [7] позволяет регулировать количество строк и столбцов в окне списка задач, или же это можно сделать с помощью редактирования реестра [8]. Это полезно, если окон так много, что список может занять несколько страниц.
Another Microsoft PowerToy, Alt+Tab ↹ Replacement,[7] is available for Windows XP that displays a снимок экрана of each application in the task list rather than just its icon, and allows the user to use the mouse to select the desired application. A more advanced version of this functionality, named Windows Flip, is built into Windows Vista.
A number of third-party tools, similar to Alt+Tab ↹ Replacement, are also available that add additional functionality to Alt+Tab ↹.
Additionally, в Windows Vista and Windows 7 allow the user to navigate through the Alt+Tab ↹ menu using mouse or клавиш со стрелками.
When the Aero Glass theme is enabled, Windows Vista also offers a 3D view of the windows themselves that animates as the user cycles through it. The behaviour is very similar to Alt+Tab ↹ and is accessed by holding down the ⊞ Win key instead of Alt while pressing Tab ↹. While this view is visible, windows can be selected and made active by clicking on them with the mouse, and the list can be scrolled forward or backward using the mouse мыши.
If there is only one window on the system, Windows does not show a selector dialog at all when Alt+Tab ↹ is pressed; the key sequence will simply restore or give focus to that window in case it is minimized or not focused. This means that under Windows 10, Alt+Tab ↹ no longer functions as a way to switch out of a full-screen application, since the desktop is no longer a window.
Если пользователь предпочитает более мелкие значки XP более крупным миниатюрным значкам Vista, он может изменить функциональность следующим образом:
- Пуск → Компьютер
- Нажмите кнопку «Свойства системы» (на панели инструментов в меню «Файл | Редактировать »).
- Выберите «Расширенные параметры системы» (в левой колонке, в разделе «Задачи»); откроется диалоговое окно «Свойства системы» , в котором должна отобразиться вкладка «Дополнительно».
- Hit the Settings Button under Performance. Uncheck the "Enable Desktop Composition" checkbox (the 3rd checkbox from the top in the Custom list box).
- Нажмите ОК
Пользователь также может остановить процесс Dwm.exe через диспетчер задач Windows .
In Windows 7 Alt+Tab ↹, after a one-second delay, displays the full-sized application window immediately each time the cursor position changes, hiding all other windows. This is a part of Aero Peek feature, new in Windows 7. This behavior can be disabled along with Aero Peek: Control Panel - Performance Information and Tools - Adjust visual effects - uncheck Enable Aero Peek.
Задержку можно регулировать, установив значение LivePreview_ms в ключе реестра HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\AltTab.
Некоторые пользователи сообщают, что диалоговое окно переключения не остается поверх других окон [9][10] во время отображения, но по этому диалоговому окну можно перемещаться с помощью мыши, даже если оно полностью перекрыто каким-либо окном. Сообщается, что эта ошибка специфична для профиля пользователя. Некоторые профили пользователей на одном и том же компьютере могут столкнуться с этой ошибкой, другие — нет. Как выяснилось, проблема иногда вызвана системой гаджетов рабочего стола. После завершения процесса sidebar.exe (который содержит гаджеты) проблема исчезает. После перезапуска sidebar проблема появляется снова. Эта ошибка также возникает, когда запущен ipoint.exe, драйвер мыши Microsoft Intellipoint. Сообщалось также о других программах, вызывающих такое поведение. [11]
The actual reason this problem occurs is because [zero-sized always-on-top windows at (0,0)] cause Windows Explorer to set the alt-tab properties incorrectly. The solution is to download and run a program which will remove these flags.[12] скачать [dead link]
Чтобы отобразить значки XP в Windows 7, опытные пользователи могут добавить новое значение DWORD AltTabSettings в раздел реестра HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\ и установить его значение равным 1.
Using Windows 7 the additional key combination Ctrl+Alt+Tab ↹ brings up the switcher dialog and it remains on screen after all the keys have been released. A user can move through the dialog in any direction using the arrow keys, or Tab ↹ through in a linear manner, wrapping at the end of the list back to the beginning. In this mode, the ↵ Enter key or a mouse click selects the desired window which gains the focus and the dialog is dismissed; Esc dismisses with no change of focus.
В Windows 7, чтобы использовать диалоговое окно переключения, аналогичное тому, что было в XP, можно удерживать клавишу Left-, коснуться клавиши Right- , а затем нажать клавишу Enter .AltAltTab ↹
There is a common[13][14] problem associated with the use of Alt+Tab ↹. It is very easy for the user to mistakenly use Alt+⇧ Shift instead, changing the system language through the use of a default keybind. To solve this issue, go into Control Panel/Regional Settings/Languages/Details and there is a button that allows the user to configure the shortcuts to switch languages - he/she can disable it or change it to something harder to press by mistake. This problem is reported on Windows XP and Windows 7.
Функциональность, не относящаяся к Windows
macOS
Similar functionality exists on macOS using ⌘ Command instead of Alt, and switching between applications rather than windows. The Mac's switcher has the additional capabilities of pointing at the desired icon with the mouse (also present in Windows Vista and above), and dropping files on applications' icons. Selected application can be hidden or closed using H or Q keys without closing the menu. ⌘ Command+` works similarly to switch between windows within the same application. Once ⌘ Command+Tab ↹ has been invoked, ⌘ Command+` changes behavior to mimic ⌘ Command+⇧ Shift+Tab ↹ (i.e. it cycles backwards). Using ↑ or ↓ allows the user to select the window to focus on. The ← and → arrow keys may also be used to navigate the application switcher.
This functionality does not automatically restore windows from an application in which all windows been minimized. To restore a window, one needs to press ⌘ Command+Tab ↹ as many times as necessary to choose the desired application, and hold the клавишу Option just prior to releasing the Command button. This will restore the most relevant[citation needed] window in the application.
There was no default комбинации клавиш for application switching in В классической версии Mac OS. Third party панели управления (such as ApplWindows and LiteSwitch) provided this behavior.
iOS
iOS adds comparable functionality using ⌘ Command instead of Alt, as with macOS. The iOS switcher allows the user to move between recently used applications (nine in landscape, six in portrait), as opposed to "open" applications, since the concept of an open application is considerably less clear on iOS than other desktop operating systems. ⌘ Command+⇧ Shift+Tab ↹ cycles backwards, as in OS X.
Unix
В Unix-подобных desktop systems such as fvwm, KDE, Xfce, and GNOME have added a compatible function. On some systems including Sun's CDE and old versions of fvwm, the Alt+Tab ↹ key combination is mapped to less sophisticated functionality such as only alternating between two windows, cycling forward or backward in a list of all windows in a fixed order, or opening a task applet in which one has to use arrow keys or the mouse to select a task and then click or push Enter. Some window managers such as WindowLab forego the onscreen window list and simply bring each window to the front in turn as Alt+Tab ↹ is pressed.
Не все оконные менеджеры предоставляют эту функциональность в качестве основной функции. Например, Blackbox её не предоставляет; пользователи, желающие иметь такое поведение, могут добавить его, запустив вспомогательное приложение, такое как bbkeys .
Компиз Фьюжн
Compiz Fusion (также известный как Beryl, Compiz ) обладает схожей функциональностью, но отображает предварительный просмотр окна, а также его значок (присутствует в Windows Vista и выше, при включенном DWM). Он также использует комбинацию клавиш Alt-Shift-Tab для перемещения назад по отображаемым программам, и можно активировать альтернативу Windows Flip 3D с помощью клавиш Windows и Tab.
ГНОМ
Оконный менеджер Metacity обладает функциональностью, схожей с версиями Windows, выпущенными до Vista, но отображает на экране только контур выбранного окна. Windows же, напротив, показывает всё выбранное окно целиком, что помогает пользователю выбрать нужное окно из множества окон с похожим заголовком или значком.
История
The Alt+Tab ↹ key combination to switch between windows has been present in all versions of Windows since Windows 1.0.[15] Originally, the Alt+Tab ↹ combination was similar to the Alt+Esc combination (which also switched windows), but Alt+Esc redrew each window immediately on each stroke, while Alt+Tab ↹ brought the windows to the top but did not redraw them until the Alt key was released.
Эта функция появилась в Windows 3.1, когда был представлен первый визуальный переключатель в виде флажка «Быстрое переключение "Alt+TAB"» в апплете панели управления рабочим столом, известном внутри системы как «CoolSwitch». [16] Однако это отображало только текущее выбранное окно, не давая пользователю подсказки о том, что произойдет при каждом последующем нажатии клавиши.
Нынешняя версия переключения приложений в виде "полосы", отображающая все приложения в одном ряду, впервые появилась в Windows 95.
Несоответствие
An example of a program that violates the expectation that pressing Alt+Tab ↹ one time will switch to the previous application is Adobe Reader 7.0.x. Like newer versions of Microsoft Word it attempts to give a separate icon in the Alt+Tab ↹ task menu to each MDI- документу отдельный значок в меню задач document. However, unlike Word, it brings two items to the front of the list whenever a document is selected using Alt+Tab ↹: first an icon representing the main Reader window and then an icon for the individual document. While in Adobe Reader, pressing Alt+Tab ↹ one time selects the second item in the list, which is the icon for the PDF document. Adobe Reader remains the current task when Alt+Tab ↹ is released. Thus it is demonstrated that the correct operation of Alt+Tab ↹, like some other aspects of the Windows environment such as the обмена chain, depends on individual applications being written correctly.
См. также
Ссылки
- ↑ Raymond Chen (2008-07-01). «Windows Vista немного изменила порядок Alt+Tab». Блог MSDN. Microsoft. Заархивировано с оригинала 3 августа 2008 г. Дата обращения: 2008-07-31.
- ↑ MSDN (2007-01-01). "Функция SetWindowPos". MSDN. Microsoft. Retrieved 2007-01-01.
- ↑ Raymond Chen (2003-10-20). «Каков порядок клавиш Alt+Tab?». Старое новое явление. Microsoft. Заархивировано from the original on 5 September 2006. Retrieved 2006-09-24.
- ↑
"Windows 0-day exploit CVE-2019-1458 used in Operation WizardOpium". Securelist. Kaspersky. 2019-12-10. Retrieved 2023-08-27.
... Our detailed analysis of the EoP exploit revealed that the vulnerability it used belongs to the win32k.sys driver ... The vulnerability itself is related to windows switching functionality (for example, the one triggered using the Alt-Tab key combination). That's why the exploit's code uses a few WinAPI calls (GetKeyState/SetKeyState) to emulate a key press operation. ...
- ↑ Руссинович, Марк (2005-07-24). «Запуск Windows без служб». Блог Марка на Sysinternals. Sysinternals. Retrieved 2006-09-24.
- ↑ Рихтер, Джеффри (July 2000). «Вопросы и ответы по Win32: полезные функции Windows и взаимосвязанные возможности». Журнал MSDN. Microsoft. Retrieved 2006-09-24.
- 1 2 "Microsoft PowerToys для Windows XP". Microsoft. 2005-11-01. Archived from оригинала on 6 October 2006. Retrieved 2006-09-24.
- ↑ Malek, Andrew. «Измените расположение Alt+Tab, чтобы отобразить больше значков». MalekTips.
- ↑ Windows 7 - Список значков при нажатии Alt+Tab не остается поверх других окон
- ↑ В Windows 7 окно, нажатое с помощью Alt+Tab, не будет оставаться поверх других окон.
- ↑ В Windows 7 при включенном Aero Peek окно, переключенное с помощью Alt+Tab, исчезает и возвращается на предыдущую страницу.
- ↑ Dawson, Bruce (2013-05-28). «Ошибка Alt+Tab усугубилась в IE 10, но найдено решение». Случайный ASCII-код . Retrieved 2015-12-13.
- ↑ Windows 7 - Клавиатура постоянно меняет язык
- ↑ Как избежать автоматической смены раскладки клавиатуры в Windows
- ↑ «Рэймонд Чен обсуждает горячие клавиши Alt+Tab и Alt+Esc». 8 September 2016.
- ↑ Раздел «Настройки» в файле WIN.INI комплекта ресурсов Windows 3.1
Внешние ссылки
Источники
- Участники английской Википедии. «Alt-Tab». Перевод на русский. CC BY-SA 4.0 (текст и перевод).
Источники иллюстраций
- Question book-new.svg · Лицензия файла уточняется (icon)
- MacOS Big Sur Task Switcher.png · Лицензия файла уточняется
- IPadOS Command+Tab.png · Лицензия файла уточняется
- Compiz-fusion-switcher-flip.jpg · Лицензия файла уточняется
