In tig, I start in the main view, and when I hit Enter on a commit, I get a split-screen with the diff view.
I'm scrolling through the diff view, and then I accidentally type O. Now the diff view is maximized. I did not want this, and want to go back to what I was looking at before.
How do I un-maximize it so I have my original split screen again?
There is no un-maximize action provided by Tig. You have to close the diff view (e.g. with q) to go back to the main view and then hit Enter again.
Related
I have a web page, when I click one button(by both using mouse click or using keyboard with tab and press), it will show some items, normally, it works perfect.
However, if I
1> open windows magnifier with 200%,
AND
2> use keyboard with tab and press
to trigger the button,
the items still shows correctly,
but the whole page moves back and forth in horizon automatically until I move mmouse or press any key.
++++++
I got the root cause:
As I input the follow code
document.addEventListener('focus',
function()
{ console.log('focused: ', document.activeElement)
},
true);
in console to monitor the focused element,
it shows the focus are switch between two elements,
however, I try to set the two element with tabindex = 0 or -1,
and all the 4 combinations,
but it doesn't work.
Are you using "docked", "full screen", or "lens" view for the magnifier?
I'm guessing "full screen" because in that mode, as you tab through a page, the magnifier will try to keep the keyboard focus within view. You might have an issue where your focus is moving between two elements that both can't be displayed in the magnifier at the same time. Usually it will just move the magnifier to the element that has focus.
I'd suggest trying "Docked" and "Lens" view first to see if you still have an issue.
I am sometimes frustrated by vi's ability to refresh files. Say I have a file open, call it afile.txt. Then I do :vsplit to split the file vertically.
I scroll down to the bottom of the file in the left pane. Then, I scroll down to the bottom of the file in the right pane.
My cursor is still in the right pane. Next, I want to refresh the file. So I do :e like a normal person would. The problem with that is, it always moves my view of the file in the left pane back to the top.
How do I refresh the file in vi without it moving the opposite pane back to the top?
Thanks.
I working on Dialog based applications once i right click on the Dialog Title bar a drop down list is coming with two options 1. Move and 2. Alt+F4 close. Once the User Press Move and he can able to drag the window as he desired and I add the On NC Hits Test to stop dragging its stopping normal dragging but it is not working in this particular context can any body help me in fixing this Bug.
When the user use the keyboard interface, he can move a windows with the arrow keys, without using the mouse.
If you want to limit the position of your dialog, process the WM_MOVING message.
I have a program which displays a ruler on the screen, and with Xlib it polls for the cursor position every 100ms and updates the display. The display consists of numbers/lines etc, in particular a line indicating the position of the cursor (which is why it updates).
The problem is that the old line needs to be erased and the content underneath restored, so I have to redraw the whole window to reflect a change in position. Doing this 10 times a second results in a very flickery program.
I could only redraw the ruler after I have confirmed that the cursor is in a position to change the indicator line (i.e. within the bounds of the ruler), but it would still flicker pretty bad when it was updating.
Sort of a noob to GTK and Xlib and all, any advice would be appreciated.
Code is at https://github.com/zjmichen/zRuler
Well you have arrived at one of the earliest problems faced when cursors were being implemented!! Cursor changes are so frequent that redrawing full window every time just doesn't make any sense! Coming to your problem, look at what is needed & what exactly you are doing. Do you need to update the full window when cursor moves? No. You need to update only a section of the window so don't update the whole window. Off the top, I can think of 2 ways of reducing flicker:
1. Simple way is to make use of GdkCursor. Create a new cursor from the pixmap (Sample provided on the developer page) with the shape of your need, a line in your case. Associate cursor with the GdkWindow of your application's main window. This way you don't have to track cursor & draw the line. The cursor itself will appear as the line (so you don't to bother about clearing & redrawing it). Now in the timer callback where you redraw the complete window, redraw only the component which has to be updated on cursor position change. This should hopefully reduce the flicker as you are not drawing all the components.
2. In case you don't want to use GdkCursor, you could create a separate transparent window on top of application window dedicated to cursor. In this approach you can update only the cursor window & the component in the application window which is to updated on change in cursor position. This way other components in the application window are not redrawn each time & this hopefully should also be able to reduce flicker.
Hope this helps!
Does anyone know of a way to stop an SWT Browser widget from printing its contents?
In my app, this widget will display confidential files. I cannot block everything, but want to make it as difficult as possible to get information out.
I easily hide the context menu when a user right-clicks, so Print cannot be gotten to in that fashion. I overwrite the clipboard to handle print screen, Ctrl-C and Ctrl-V. But if i hit Ctrl-P, I do not want the print dialog to come up either. Any ideas?
I found a way around my situation. In this app, the admin chooses if the user can print the files or not. There is a menu bar in the app, so if printing is allowed, I add a print item in the menu with Ctrl-P as its hot key.
If printing is not allowed, I set the hot key for one of the menu options to be Ctrl-P and dont add the print option at all in the menu bar. This way it disables the print dialog from ever appearing because Ctrl-P executes a menu item function instead.